mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 03:59:25 +00: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)
|
||
|
}
|