Questions tagged [float]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4 votes
2 answers
401 views

Can you use floating point numbers or math in the Runtime?

I would like to do some basic operations in the runtime like: let new_balance = .5 * old_balance; Or save a percentage value in the runtime storage. Or represent the balance of a user like: 3.141592 ...
Shawn Tabrizi's user avatar
  • 16k