cs150

Open full view…

for ceiling function [x]=

Nayema Laboni
Sat, 07 Nov 2015 20:54:42 GMT

the smallest integer not less that that x but ex was [.5]=1 so is it supposed to be x is the smallest integer no less than [x], I was confused that's why I am asking.

alexey
Sat, 07 Nov 2015 21:18:25 GMT

The ceiling function rounds a real number up. For example: Ceil ( 1 ) = 1 Ceil ( 0.5 ) = 1 Ceil ( 0 ) = 0 Ceil ( -0.5 ) = 0 Ceil ( -1 ) = -1 Ceil ( -1.5 ) = -1

Nayema Laboni
Sat, 07 Nov 2015 21:40:48 GMT

yeah I understand that it rounds a real number up but my confusion is about x and [x], based on the characteristics it seems like they are defined the opposite ways, I am definitely not a pro to claim anything but that's how it seemed to me and it was hard for me to have descriptive ans due to this