d128 to integer value
I need to round and fetch the integer equivalent of a d128 instance. There don't appear to be many ways to do this. The closest I've found is to use the Into trait implemented. Unfortunately, if the d128 value is too large, it fails and returns 0 without any way to signal error. Instead of using Into, the TryInto trait should be implemented to signal error. In addition, only u32 and i32 are accepted which are too small for my use case.
I have code to convert d128 to u64 (and I think u128) somewhere. would that solve your problem?
I would like to see i64, u64, i128, and u128 conversions in the crate (along with TryInto implementations)