“greengiant83” wrote:
Most languages have a ceiling function. … Does Brightscript not have this basic method?
That’s not true. Most languages have “floor” and “round” kind of conversion float->int. And the reason “ceiling” might not be included is you can easily do that with floor(x + 1 - epsilon), where epsilon is some platform specific small value like 1e-30. Or you know, floor(x + 0.9999…). Duh.
Most - can’t be used as an adjective in this thread. The only language I know of with a ceiling function is javascript. Spreadsheets have the function as well, but those aren’t programming languages.
Int and Fix are already filling the requirement, so there isn’t a real need for a ceiling specific function in brightscript.