Difference between revisions of "Floor"
From Mesham
Jump to navigationJump to searchm (4 revisions imported) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
This floor(d) function will find the largest integer less than or equal to ''d''. | This floor(d) function will find the largest integer less than or equal to ''d''. | ||
| − | * '''Pass:''' A | + | * '''Pass:''' A [[Double]] to find floor of |
| − | * '''Returns:''' An | + | * '''Returns:''' An [[Int]] representing the floor |
== Example == | == Example == | ||
#include <maths> | #include <maths> | ||
| − | var a:=floor(10.5); | + | |
| − | + | function void main() { | |
| + | var a:=floor(10.5); | ||
| + | var y:=floor(a); | ||
| + | }; | ||
| + | |||
| + | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:Maths Functions]] | [[Category:Maths Functions]] | ||