Jonathan Leffler wrote: >Or, what happens if there are 10 digits after the decimal point.
That's what the substr() is for. >Yeah, mostly academic, except I'm working towards a time type (not for >Perl per se) that extends down to picoseconds (and up to 10^12 years, >too). At least 105 bits, then. TAI64 covers nearly 10^12 years, of course, and the extension TAI64NA goes down to attoseconds in a 128-bit format. What's the concept behind your type? Personally I like to use bignum rational arithmetic, for unlimited resolution. Performance is atrocious with the Perl bignum libraries, unfortunately. -zefram