Round Down Decimal Number

robert.mccarthyrobert.mccarthy Member Posts: 165
edited June 2012 in Working with GS (Mac)
Hi All,

Just wondering, if I add 2 REAl numbers together (i.e. 1.1 + 1.2) then it rounds it down (i.e. 1.1 + 1.2 = 2 as integer).

However, if the decimal place is above 5, it rounds it up (i.e. 1.6 + 1.2 = 3 as integer).

Is there a way or a function so that it always rounds down?

Thanks,

Best Answers

Answers

  • robert.mccarthyrobert.mccarthy Member Posts: 165
    Great stuff. I didn't know about this function/expression. Just seen the description in the cookbook definitions. Thanks!
Sign In or Register to comment.