-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
How to implement arbitrary precision arithmetic with fixed point? Let's say we have this code:
var ctx = EContext.ForPrecision(5);
var a = EDecimal.FromString("2");
var b = a.Sqrt(ctx);
That means 5 total digits (both integer and fractional part), so it produces result 1.4142 which is not what I need. I want to call something like EContext.ForFixedPrecision(5) and always get results with 5 digits after point (while integer part remains unlimited). Is it possible?
Metadata
Metadata
Assignees
Labels
No labels