You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
No it does not, but you *are* limited to 18 decimal places with FORMAT$(). Moreover, SINGLE precision has an accuracy limitation of 7 digits, so displaying more than 7 digits is "wasteful" as best, inaccurate at worst.
Also, be sure to read the FPU 80-bit precision note in the FAQ forum - it may be useful if you really do need to use 80-bit precision in your floating point calculations.
You are pushing the Single limit to its maximum value !
Maybe you are causing some kind of overflow with the variable
and the GPF isn't produced until you use the single in the Format$
function.
Try setting the value a little smaller and see if it still GPF's.
If it doesn't GPF with a smaller value, then it likely is an
overflow problem. The value you used is the max value according to
the PB docs. Maybe the actual max value is slightly smaller.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: