• Resolved stosun

    (@stosun)


    Hi,
    How do work ceil(variable) and floor(variable) aritmetic operators?
    Because, they don’t consist of precision.

    Could you give an example?
    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author moomooagency

    (@moomooagency)

    Hi,

    These functions round the value to the next whole number or the previous whole number respectively.

    Thread Starter stosun

    (@stosun)

    Hi,
    What you mean whole number? integer?

    I think precision is needed to round up or down.
    Could you give me an example, please?
    Regards

    Plugin Author moomooagency

    (@moomooagency)

    A whole number, not necessary integer. Like 3, 11 or 256.

    No, precision is not needed. floor rounds down, ceil rounds up and round rounds by the common rule with a precision:

    0 – to a whole number;
    1 – to one digit after the dot
    2 – to two digits after the dot

    • This reply was modified 8 years, 3 months ago by moomooagency.
    • This reply was modified 8 years, 3 months ago by moomooagency.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How do work ceil and floor operator?’ is closed to new replies.