Name |
Ceylon Math Platform Module |
---|---|
Category |
SDK
The Ceylon SDK |
Backends | JVM |
Maven coordinates | org.ceylon-lang:ceylon.math |
Compatible Ceylon release |
JVM: 1.2.x, 1.3.x (latest) |
Published | Aug 21, 2017 |
Stats |
Downloads (JVM): 1141 Source downloads: 671 |
Authors |
Tom Bentley |
Description |
This module provides four APIs:
The types Whole and Decimal are first-class numeric types and support all the usual mathematical operations: Whole i = wholeNumber(12P); Whole j = wholeNumber(3); Whole n = i**j + j; print(n); //prints 1728000000000000000000000000000000000003 Operations on Decimal x = decimalNumber(66.0G); Decimal y = decimalNumber(100.0T); Decimal z = decimalNumber(66.0f); Decimal d = implicitlyRounded(() => (x+z)/y/x, round(40, halfUp)); print(d); //prints 1.000000000000000000000001E-14 Here, the expression |
Dependencies |
java.base/7 JDK
|
Usage |
import ceylon.math "1.3.3"; |
Module links |
Members Imported By Home Code repository Issue tracker Browse Download .car No .js archive Download source archive Download module documentation View API documentation |