Scripting > Math Functions

 
Determine if Data is in English Units

isEnglish()

 

Determine if the current time series or paired data set is in English units.  The function examines the data set parameter type and units label to establish the unit system.

 

See also: isMetric(); convertToEnglishUnits()

Parameters: No parameters

Example: if dataSet.isEnglish() : print “English Units”

Returns:  Constants.TRUE if the data set units are English, otherwise Constants.FALSE.

Generated Exceptions: Throws a hec.hecmath.HecMathException if the unit system cannot be determined (parameter type and units label undefined).