(Updated to allow e.g. 99 cents to be a cost.)if ( NumericTrue( $cost ) ) { ... } sub NumericTrue{ return shift()*1.0; }
-M
Free your mind
In reply to Re^2: Integer vs Float during addition
by Moron
in thread Integer vs Float during addition
by chrism01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |