3

What is the reason that the SCALE codec does not support Encode and Decode of f64 types?

1 Answer 1

2

Basically this question boils down to: Can you use floating point numbers or math in the Runtime?

While SCALE could deterministically encode and decode floating point types, the runtime can't deterministically do compute on them. Interestingly to do some benchmarks of SCALE f64/f32 support was hacked in to allow like for like comparison of serialisation benchmarks: https://github.com/paritytech/parity-scale-codec/issues/341

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.