Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Rounding

From: mat:0wnerage at: 29-May-2002 18:54

Librarian comment

the round function is supplied as standard in REBOL 1.3 and later.

>> print to-integer 1.6
1 I can't for the life of me find a word which does the same as this but which actually rounds (so you'd get 2) rather than just chopping off the remainder. Is there such a beast or must one write a function to do it? I've actually resorted to doing exactly this and it's pretty ugly :) Regards, Mat