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
In reply to Re: Coping with decimals
by tlm
in thread Coping with decimals
by Ruanae
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |