nathan75
28-09-2006 10:11:22
def _configure(self):
____"""This shows the config dialog and creates the renderWindow."""
____carryOn = self.root.showConfigDialog()
____if carryOn:
______print 0.04/16,"sfcon21"
______self.renderWindow = self.root.initialise(True)
______print 0.04/16,"sfcon22"
____return carryOn
It's a part of SampleFramework.py. However, I got two different result for 0.04/16.
0.0025 sfcon21
0.00249999994412 sfcon22
the sentence self.renderWindow = self.root.initialise(True)
change the precision to single.
Actually, I don't care whether ogre itself use single or double precision, but I have to use double precision in another part of this program. however, pyogre change all the mathematic activity to single precision.
It's very strange. How can I change it back to double?
Thank you very much!
____"""This shows the config dialog and creates the renderWindow."""
____carryOn = self.root.showConfigDialog()
____if carryOn:
______print 0.04/16,"sfcon21"
______self.renderWindow = self.root.initialise(True)
______print 0.04/16,"sfcon22"
____return carryOn
It's a part of SampleFramework.py. However, I got two different result for 0.04/16.
0.0025 sfcon21
0.00249999994412 sfcon22
the sentence self.renderWindow = self.root.initialise(True)
change the precision to single.
Actually, I don't care whether ogre itself use single or double precision, but I have to use double precision in another part of this program. however, pyogre change all the mathematic activity to single precision.
It's very strange. How can I change it back to double?
Thank you very much!