[fpc-pascal] Functions for dealing with floating-point precision

2024-09-15 Thread Ekkehard Domning via fpc-pascal
s://en.wikipedia.org/wiki/Unit_in_the_last_place -=-=-=-Start of Page excerpt =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [fpc-pascal] Functions for dealing with floating-point precision Thomas Kurz via fpc-pascal Sun, 19 Jun 2022 13:38:48 -0700 Hello, in my program I have need for ch

[fpc-pascal] Functions for dealing with floating-point precision

2022-06-19 Thread Thomas Kurz via fpc-pascal
Hello, in my program I have need for checking floating-point precision. I'm internally using floating-points for calculations, but in the end I have to use integer numbers. I cannot use Round() because I have to check for thresholds. I.e. that I wish to accept a value of 1. as being ">=