Floor, Ceiling function

Info about design forms features
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Floor, Ceiling function

Postby PetrS » 16 Jul 2014, 06:32

size=150Floor, Ceiling function/size
Version 5.2.16 and higher

The CEILING function is used to round a number upwards to the nearest multiple of a specified value.
The FLOOR function is used to round a number downwards to the nearest multiple of a specified value.

If you use Floor/Ceiling function with one parameter, second parameter is automatically used = 1.

ubSyntax:/b/u
double Result = Floor(double X);
double Result = Floor(double X, double Y);

double Result = Ceiling(double X);
double Result = Ceiling(double X, double Y);


See attached example for more info.
Attachments
FloorCeiling.cls
(22.85 KiB) Downloaded 233 times
Ing. Petr Slepicka

Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1107: count(): Parameter must be an array or an object that implements Countable

Return to “Design forms features”

Who is online

Users browsing this forum: No registered users and 5 guests