float
Description:
Function float converts an integer into a float.
This function name starts with a lowercase letter. |
Parameters:
(value)
float | value | Integer value to convert to a float. |
Return Values:
The given integer as a float
Examples:
new Float:FloatValue; new Value = 52; FloatValue = float(Value); // Converts Value(52) into a float and stores it in 'FloatValue' (52.0)
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- floatstr: Converts a string to a float.
- floatmul: Multiplies two floats with each other.
- floatdiv: Divide one float by another one.
- floatadd: Adds two floats together.
- floatsub: Subtracts one float from another.
- floatfract: Get the fractional part of a float.
- floatround: Round a floating point number to an integer value.
- floatcmp: Compare float values to each other, to validate the comparison.
- floatsqroot: Calculates the square root of given value.
- floatpower: Raises the given value to the power of the exponent.
- floatlog: Allows you to get the logarithm of a float value.
- floatsin: Get the sine from a given angle.
- floatcos: Get the cosine from a given angle.
- floattan: Get the tangent from a given angle.
- floatabs: Returns the absolute value of float.