Changes

Jump to navigation Jump to search
221 bytes added ,  19:15, 14 June 2016
Line 620: Line 620:  
z^3 unit conversions cover a large number of units, and is highly flexible in handling new units that are not known.  
 
z^3 unit conversions cover a large number of units, and is highly flexible in handling new units that are not known.  
   −
NOTE: In general, if a conversion fails, the original value with units are returned. This behavior can be changed so that a unit conversion if not possible, would return a null value. (This will be detailed shortly).
+
NOTE: In general, if a conversion fails, the original value with units are returned. This behavior can be changed so that a unit conversion if not possible, would return a null value. To do this, change the global variable UNITSFAILTONULL to true.
    +
The following will give 1m as the result.
    +
1m<>eor
    +
1 m
 +
 +
UNITSFAILTONULL=true
 +
 +
1m<>eor
 +
 +
will now give null as the result.
 +
 +
UNITSFAILTONULL=false
 +
 +
1m<>eor
 +
 +
1 m
 +
 +
will be shown as the result.
    
==Interesting Techniques==
 
==Interesting Techniques==
2,824

edits

Navigation menu