in reply to Coping with decimals
Given that you're dealing with phases, presumably with period 1, if your calculation can produce negative numbers, then I would recommend:
instead of$x - POSIX::floor( $x );
or$x - int( $x );
( POSIX::modf( $x ) )[ 0 ];
the lowliest monk
|
|---|