Documentation
¶
Index ¶
- Constants
- func Add(a, b float64, mode RoundingMode) float64
- func Div(a, b float64, mode RoundingMode) float64
- func Int32ToFloat64(a int32) float64
- func Int64ToFloat64(a int64, mode RoundingMode) float64
- func IsNaN(a float64) bool
- func Mul(a, b float64, mode RoundingMode) float64
- func Sqrt(a float64, mode RoundingMode) float64
- func Sub(a, b float64, mode RoundingMode) float64
- func Uint32ToFloat64(a uint32) float64
- func Uint64ToFloat64(a uint64, mode RoundingMode) float64
- type RoundingMode
Constants ¶
View Source
const ( // RoundingModeToNearest IEEE 754 roundTiesToEven / softfloat_round_near_even RoundingModeToNearest = RoundingMode(iota) // RoundingModeToNegative IEEE 754 roundTowardNegative / softfloat_round_min RoundingModeToNegative // RoundingModeToPositive IEEE 754 roundTowardPositive / softfloat_round_max RoundingModeToPositive // RoundingModeToZero IEEE 754 roundTowardZero / softfloat_round_minMag // TODO: unused??? RoundingModeToZero )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
func Add(a, b float64, mode RoundingMode) float64
func Div ¶
func Div(a, b float64, mode RoundingMode) float64
func Int32ToFloat64 ¶
func Int64ToFloat64 ¶
func Int64ToFloat64(a int64, mode RoundingMode) float64
func Mul ¶
func Mul(a, b float64, mode RoundingMode) float64
func Sqrt ¶
func Sqrt(a float64, mode RoundingMode) float64
func Sub ¶
func Sub(a, b float64, mode RoundingMode) float64
func Uint32ToFloat64 ¶
func Uint64ToFloat64 ¶
func Uint64ToFloat64(a uint64, mode RoundingMode) float64
Types ¶
type RoundingMode ¶
type RoundingMode uint8
Click to show internal directories.
Click to hide internal directories.