Cent Module
utility functions for base currency unit values
Functions and values
Function or value | Description |
Full Usage:
Cent.fromDecimal m
Parameters:
decimal
Returns: int64<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
Cent.fromDecimalCent rounding c
Parameters:
Rounding
c : decimal<MeasureProduct<Cent, MeasureOne>>
Returns: int64<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
Cent.max c1 c2
Parameters:
int64<MeasureProduct<Cent, MeasureOne>>
c2 : int64<MeasureProduct<Cent, MeasureOne>>
Returns: int64<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
Cent.min c1 c2
Parameters:
int64<MeasureProduct<Cent, MeasureOne>>
c2 : int64<MeasureProduct<Cent, MeasureOne>>
Returns: int64<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
Cent.round rounding m
Parameters:
Rounding
m : decimal
Returns: int64<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
Cent.roundTo rounding decimalPlaces m
Parameters:
Rounding
decimalPlaces : int
m : decimal<MeasureProduct<Cent, MeasureOne>>
Returns: decimal<MeasureProduct<Cent, MeasureOne>>
|
|
Full Usage:
Cent.toDecimal c
Parameters:
int64<MeasureProduct<Cent, MeasureOne>>
Returns: decimal
|
|
Full Usage:
Cent.toDecimalCent c
Parameters:
int64<MeasureProduct<Cent, MeasureOne>>
Returns: decimal<MeasureProduct<Cent, MeasureOne>>
|