mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2025-01-08 05:52:10 +07:00
9 lines
177 B
Go
9 lines
177 B
Go
|
package views
|
||
|
|
||
|
import "strconv"
|
||
|
|
||
|
// Convert the float to a string, trimming unnecessary zeros
|
||
|
func formatFloat(f float64) string {
|
||
|
return strconv.FormatFloat(f, 'f', -1, 64)
|
||
|
}
|