Floor
Floor(x,digits)
Floor(x) Returns the largest number equal to or less than «x».
- Floor( 3.141592) → 3
- Floor(-3.141592) → -4
- Floor( 3 ) &rarr 3
Note: The «digits» parameter is available only in Analytica 4.3 or later.
Floor(x,digits) returns the largest number with «digits» digits to the right of the decimal among all such numbers that are less than or equal to «x».
- Floor( 3.141592, 3 ) &rarr 3.141000
- Floor(-3.141592, 3 ) &rarr -3.142000
- Floor(-3, 2 ) &rarr -3.0000000
«digits» may be negative. In general, finds the largest multiple of 10-«digits» that is equal to or less than «x».
- Floor( 1234567.89, -2 ) → 1234500
- Floor(-1234567.89, -1 ) → -1234570
See Also
Comments
Enable comment auto-refresher