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

[REBOL] Re: [tuple version build round] Tuple tricks, build numbers, and rounding

From: gregg::pointillistic::com at: 27-Apr-2007 16:20

Hi Steeve, SA> round-tuple: func [ SA> "Round a tuple to the given number of segments, truncating the rest." SA> tuple [tuple!] SA> scale [integer!] "The number of segments to keep" SA> ][ SA> to tuple! cp/part load form parse form tuple "." scale SA> ] Ooooohhhh, smaller *and* faster. I like it. Thanks! -- Gregg