Working in DOORS 8.3
When I run the following script:
real u = 0.0123456789
real v = 0.9876543210
x = u + v
print x
the DXL output is:
1.000000
How do I get the DXL output to be:
0.9999999999
I can rephrase the question by simply asking: "when I create an attribute with a base type of Real, how do I enter an attribute value of 1e-12 without DOORS automatically rounding it to 0.000000?
a.) I've looked through the forums and found the following thread, but I'm not yet experienced enough to completely understand its contents:
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14582477�
b.) Also, on page 126 of the DXL Reference Manual (v.8.3), I found the following under print (base types):
real: The passed real number r in the DXL output window, using a precision of 6 digits after the radix character.
Other than a.) and b.), I haven't found any other useful insights regarding either the nature or the solution to my problem.
c_gassman - Fri Jun 22 18:22:52 EDT 2012 |