number

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShiftFloatToInt

func ShiftFloatToInt(nr float64, decimals int) int64

ShiftFloatToInt shifts decimal point to the right (multiply) to store a float as int.

func ShiftIntToFloat

func ShiftIntToFloat(nr int64, decimals int) float64

ShiftIntToFloat shifts decimal places to the left (divide) to get a float value of an int created with ShiftFloatToInt().

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL