sosFloatCreate (Function) |
Top Previous Next |
sosFloatCreate will create a new FLOAT object. If the object already exists, it will be replaced. Please note that when using this function, math.inc must be explicitly included by the application.
Input: key : STRING The key for the object to create. May only contain a-z,A-Z,0-9, "." and "_" (maximum of 250 characters).
desc : STRING The description for the object, to show in the IDE (maximum of 80 characters).
value : FLOAT default 0 The initial value for the object. The value is not validated, making it possible to use it to e.g. determine unmodified values.
min_val : FLOAT default 0 The minimum allowed value for the object. If both min_val and max_val are 0, there will be no limit. NaN is not a valid value for this parameter.
max_val : FLOAT default 0 The maximum allowed value for the object. If both min_val and max_val are 0, there will be no limit. NaN is not a valid value for this parameter.
Returns: INT
Declaration: FUNCTION sosFloatCreate : INT;
Example: INCLUDE rtcu.inc |