How can I do math on floating point values in substrate runtime. As a simple example imagine I want to keep track of an interest rate in decentralized finance.
I can prototype by using the percentage as an integer
let rate = 2;
let dividend = capital * rate / 100;
But what if my interest rate is 2.5% or 2.4554%?
Is there any standard way to do floating-point arithmetic?