How does golang get the number of decimal places in float64?

all I want is the number of decimal places, that is, how many decimal places there are. Thank you

May.10,2022

A relatively simple method is to convert it to a string and then calculate the length after the decimal point

len (strings.Split (fmt.Sprintf ("% v", a), ".) [1])

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b437f1-2c67c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b437f1-2c67c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?