CustCustomField.minMaxToStr Method
Converts a specified number to a String that has the amount of decimal points based on the CustCustomField.DataType value.
Syntax
private str minMaxToStr(real _number, CustomFieldDataType _type)
Run On
Called
Parameters
- _number
Type: real
A number value to convert to a String.
- _type
Type: CustomFieldDataType Enumeration
The data type that is used to determine the number of decimal points to append to the String.
Return Value
Type: str
The String representation of the number adjusted by the CustCustomField.DataType value.
Remarks
The CustCustomField.DataType value is used to determine the number of decimal points to display:
Real - 4 decimal points
Currency - 2 decimal points
Integer - 0 decimal points