Converts a string in the form of a decimal number to an integer, multiplying it by 10n
Class: Mathematical
Parameters: $string – A string value representing a number
n – An integer that specifies the power
Syntax: returnValue=fix($string,n)
Returns: An integer number
Remarks: This method pre-dates the inclusion of floating point variables and is retained for backward compatibility only
Example:
//Example for the mathematical fix method
$s=”1.234” //Set string value
d=3 //Set power value
result=fix($s,d) //Calculate result (= 1234)
message($s + “ to the power of “ + d + “ is “ + result) //Display results message