Replies: 4 comments 6 replies
-
Hi Geoff. A good question 😁. |
Beta Was this translation helpful? Give feedback.
-
@AngusJohnson Are you still planning to add a definition that would allow setting the precision as mentioned? It's been a while, but I could update the old branch I had for CPP and PR it. I'm not familiar with how it would be done in C# and Pascal, but I could look at those implementations and figure it out if you want for all three to be updated at once. |
Beta Was this translation helpful? Give feedback.
-
Hi again Geoff. are you wanting this redefined as a user modifiable |
Beta Was this translation helpful? Give feedback.
-
Ah I didn't look there, I was thinking it could be set with macro definition so users can pass a flag at build time, e.g. |
Beta Was this translation helpful? Give feedback.
-
Is there a particular reason why the most negative precision value allowed by
CheckPrecision
(CPP) is-8
? Coming from the perspective of using floats (as we do in Manifold),+8
is enough to cover the decimal places that they provide with an integer part of0
, if the significant figures begin immediately e.g.0.1234
, but floats are actually still able to provide their 6 to 7 digits at smaller decimals following zeroes. On the other side, stopping at-8
puts an (arbitrary?) limit on how big values can get before it is not possible to scale them down to fit intoint64
.Ideally, I'd like to be able to use precisions as calculated by a function like below in order to scale up/down into int64, but
CheckPrecision
limits the working range of floats/doubles that can be used.Is relaxing this constraint something that you would consider?
Beta Was this translation helpful? Give feedback.
All reactions