distof


(distof  string  [ unit ] )

This function converts and returns the specified string as a distance value as double value; if unit (1...5) is not specified, the value of LUNITS system variable is used.

Arguments

string  a string specifying a distance value

unit  (optionally) string, specifies the unit used by string; if omitted, the LUNITS value is used

Return

double value, or NIL if conversion is not possible

Example

(distof "123456.789" 1)
123456.789



Remarks

unit / LUNITS :
1 scientific
2 decimal
3 engineering
4 architectural
5 fractional

see (rtos) function



©  Bricsys NV. All rights reserved.