Thread Links Date Links
Thread Prev Thread Next Thread Index Date Prev Date Next Date Index

Re: Motion 46: finalise interval literals, amendments



On 07/02/2013 02:12 PM, Jürgen Wolff von Gudenberg wrote:
> John,
>   just another option would be to use different constructors

>         text2interval("x")   --> [x,x] where   is parseFloat("x")

   This won't work correctly with a IEEE-754 binary because, for
example, parseFloat("0.1") is not 0.1.  The resultant interval will not
contain the input.

-- 
  Alan Eliasen
  eliasen@xxxxxxxxxxxxxx
  http://futureboy.us/