lab003

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 0

README

fmt对浮点数位数取舍

用fmt对浮点数的位数操作,然后再用parseFloat转到float64

运行结果

Imgur

参考资料

  1. https://my.oschina.net/henrylee2cn/blog/741753
  2. https://gobyexample.com/string-formatting

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL