Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Please explain Ceil, Floor Examples with little briefly some time I am getting Rounding Errors(Different Value).
Rounding of x upwards to the nearest multiple of base with an offset of offset. The result is a number.
Examples:
ceil( 2.4 ) returns 3
ceil( 2.6 ) returns 3
ceil( 3.88 , 0.1 ) returns 3.9
ceil( 3.88 , 5 ) returns 5
ceil( 1.1 , 1 , 0.5 ) returns 1.5
Hi Raja,
If your value is 3.2 then Ceil function will return 4
and
Floor function will return 3.
Thanks and Regards,
Vishal Waghole
Rounding of x upwards to the nearest multiple of base with an offset of offset. The result is a number.
Examples:
ceil( 2.4 ) returns 3
ceil( 2.6 ) returns 3
ceil( 3.88 , 0.1 ) returns 3.9
ceil( 3.88 , 5 ) returns 5
ceil( 1.1 , 1 , 0.5 ) returns 1.5