Documentation ¶
Index ¶
- func Format32(value float32, decimals int) string
- func Format64(value float64, decimals int) string
- func Max32(value1, value2 float32) float32
- func Max64(value1, value2 float64) float64
- func Min32(value1, value2 float32) float32
- func Min64(value1, value2 float64) float64
- func Parse32(str string) (float32, error)
- func Parse64(str string) (float64, error)
- func SafeParse32(str string, defaultValue float32) float32
- func SafeParse64(str string, defaultValue float64) float64
- func SimpleFormat32(value float32) string
- func SimpleFormat64(value float64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeParse32 ¶
SafeParse32 convert str to float32. if str is not a illegal uint value representation, return defaultValue
func SafeParse64 ¶
SafeParse64 convert str to float64. if str is not a illegal uint value representation, return defaultValue
func SimpleFormat32 ¶
SimpleFormat32 convert float32 to string
func SimpleFormat64 ¶
SimpleFormat64 convert float64 to string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.