Open Bagolly opened 1 year ago
A built-in function, called ConvertTo( value, unit )
ConvertTo( value, unit )
Returns the value, converted to the specified unit, eg.
value
unit
string length = "ConvertTo(3m, cm)"; // Should evaluate to 300 string volume = "ConvertTo(1.5dm3, l)"; // Should evaluate to 1
Proposed additions:
A built-in function, called
ConvertTo( value, unit )
Behavior:
Returns the
value
, converted to the specifiedunit
, eg.