Documentation ¶
Index ¶
- func CompareFloat32WithPrecision(a, b float32, numberDecimalPlaces int) (result bool)
- func CompareFloat64WithPrecision(a, b float64, numberDecimalPlaces int) (result bool)
- func RoundFloat32(value float32, position int) float32
- func RoundFloat64(value float64, position int) float64
- func TruncFloat32(value float32, position int) float32
- func TruncFloat64(value float64, position int) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareFloat32WithPrecision ¶
CompareFloat32WithPrecision compares two floats precisely up to a specified number of decimal places.
func CompareFloat64WithPrecision ¶
CompareFloat64WithPrecision compares two floats precisely up to a specified number of decimal places.
func RoundFloat32 ¶
RoundFloat32 - round a float to a given decimal position
func RoundFloat64 ¶
RoundFloat64 - round a float to a given decimal position
func TruncFloat32 ¶
TruncFloat32 - truncate a float to a given position
func TruncFloat64 ¶
TruncFloat64 - truncate a float to a given position
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.