You are not logged in.
Pages: 1
What's the appropriate notation for rounding an expression up to the nearest integer?
Example: 2.1 yields 3.
I wish I would have paid attention in my precalculus class...this notation is coming back to haunt me as a computer science major taking Algorithm Design and Analysis.
Thanks!
I think I've figured it out. My best guess is ⌈x⌉. If that's not it, it's ⌊x⌋. Pretty sure it's the first one. Can someone confirm this?
Thanks!
Yep, it's the first one. The second one always rounds down.
In computing, ceil(x) and floor(x) respectively are commonly used.
Why did the vector cross the road?
It wanted to be normal.
Offline
Pages: 1