[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] odd math calculations



I have a couple of functions that calculate doubles that are quite small
ie:

	0.837425
	0.664331
	0.66331
	0.662291
	0.661273
	0.660254

And when I run them outside of ns I get different results than inside.
We're talking the SAME functions here. I've hardcoded the values and
made sure the compiling is working with cout statements. And sometimes
it is off by as much as .01 in ns but not running it from the console.
Anyone have a clue why ns would seem to be interfereing with the math?
 -Will