[X3D-Public] range of the field types
Bederov, Sergey
bederov at cortona3d.com
Wed Dec 22 01:18:19 PST 2010
Hello Sajjad,
Are you creating a GUI to set SFFloat and SFDouble values on multiple platforms? The specification says that the actual ranges of values may depend on the implementation, but the ranges specified in the specification should work in all implementations. So, if you want the files edited in your GUI to work in all X3D browsers, you should use the ranges specified in the specification. If I understand the specification correctly, the ranges are:
SFFloat: 1.00000∙10-12 to 9.99999∙1012
SFDouble: 1.0000000000000∙10-12 to 9.9999999999999∙1012
The numbers can be positive and negative, and the value 0.0 must also be available.
Am I right in the interpretation of "digits of precision" and "exponent"? Maybe someone more familiar with the specification can correct me.
Sergey Bederov
From: x3d-public-bounces at web3d.org [mailto:x3d-public-bounces at web3d.org] On Behalf Of Sajjadul Islam
Sent: Saturday, December 18, 2010 6:59 PM
To: x3d-public at web3d.org
Subject: [X3D-Public] range of the field types
Hello forum,
I am trying get the maximum and minimum value of the SFFloat field type. I am trying to create a GUI editor and that editor will contain this maximum and minimum value. The specification says that
"Implementation of these fields is targeted at the double precision floating point capabilities of processors. However, it is allowable to implement this field using fixed point numbering provided at least 14 decimal digits of precision are maintained and that exponents have range of at least [-12, 12] for both positive and negative numbers."
How to put the minimum and maximum range to specific value ?
Any hint would be very valuable.
Regards
Sajjad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20101222/4c3244cc/attachment-0001.html>
More information about the X3D-Public
mailing list