package main
import (
"fmt"
"strconv"
)
func main() {
amount := "19.05"
f, err := strconv.ParseFloat(amount, 32)
if err != nil {
panic(err)
}
f *= 100
fmt.Println(strconv.FormatFloat(f, 'f', -1, 32))
}
Outputs: 1904.9999
Play Blokr Now FREE!
blokr.io the web game where you can eat other blocks!