Double
64-bit double-precision floating-point number.
xxml
Language::CoreMethods
| Method | Parameters | Returns | Description |
|---|---|---|---|
| Constructor | — | Double^ | Create Double (0.0) |
| Constructor | value: double | Double^ | Create from literal |
| add | other: Double^ | Double^ | Addition |
| subtract | other: Double^ | Double^ | Subtraction |
| multiply | other: Double^ | Double^ | Multiplication |
| divide | other: Double^ | Double^ | Division |
| equals | other: Double^ | Bool^ | Equality check |
| lessThan | other: Double^ | Bool^ | Less than |
| greaterThan | other: Double^ | Bool^ | Greater than |
| toString | — | String^ | Convert to string |
| toInteger | — | Integer^ | Truncate to Integer |
| toFloat | — | Float^ | Convert to Float (may lose precision) |
Examples
Double Precision
xxml
Instantiate Double^ As <precise> = Double::Constructor(3.141592653589793);
Instantiate Double^ As <result> = precise.multiply(Double::Constructor(2.0));