roundUp function?

Roger Eller roger.e.eller at sealedair.com
Tue Nov 22 09:40:02 EST 2016


Peter,

ceil works in 8.1.1, and in the docs of 8.1.1 says "Introduced in 6.7", yet
it fails in 6.7.5 and6.7.8, nor is it in the 6.7.x dictionary.

That said, I need it in an app that is built and deployed in 6.7.5.

~Roger


On Tue, Nov 22, 2016 at 9:29 AM, Roger Eller <roger.e.eller at sealedair.com>
wrote:

> Thanks, Peter!
>
> ~Roger
>
>
> On Tue, Nov 22, 2016 at 9:27 AM, Peter TB Brett <peter.brett at livecode.com>
> wrote:
>
>>
>>
>> On 22/11/2016 14:15, Roger Eller wrote:
>>
>>>  We have round, which will either round up or down depending on the
>>> decimal
>>> value being > or < .5, but what if I want ANY decimal value, even .01 to
>>> round UP to the next whole number?
>>>
>>
>> You probably want to use "the ceiling of <number>", or "the ceil of
>> <number>".
>>
>> Best regards,
>>
>>                                      Peter
>>
>> --
>> Dr Peter Brett <peter.brett at livecode.com>
>> LiveCode Technical Project Manager
>>
>> lcb-mode for Emacs: https://github.com/peter-b/lcb-mode
>>
>
>
>



More information about the use-livecode mailing list