Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
kevin ✨
@kevin@gimbel.dev  ·  activity timestamp 12 hours ago

In Go, which type would be best to define a number with up to two decimals, like 99.5 or 99.75?

float32 or float64?

The value can never be negative and it can never be more than 100.

#golang #dev #go

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login