Preventing a Floating-Point Error
Siebel CRM can store a decimal number that does not convert to a finite binary representation with only a small precision error. For example, the following statement might result in Siebel CRM storing VariableA as 142871.450000000001:
var VariableA = 142871.45
A small precision error will likely have little effect on the precision of a subsequent calculation, depending on the context where you use the number.
A number might be too large for the field that Siebel CRM uses to display it, resulting in an error message that is similar to the following:
Value too long for field %1 (maximum size %2)
To prevent a floating-point error
Use the Convert Number to Fixed Decimal Method method at an appropriate location in the calculation or when you save the value in a variable.
For example, use x.toFixed(2) in a calculation instead of using VariableA. For more information, see Convert Number to Fixed Decimal Method.