Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualJames Leighe

Posted 02 August 2012 - 06:31 AM


typedef float real; // or double



real x = real(23.0);



I'm not sure why that didn't occur to me last night...

And yeah I'm being anal about precision even though its hardly an issue but it helps for arithmetic with pi or simply 1/3 like the above poster said.

#1James Leighe

Posted 02 August 2012 - 06:30 AM


typedef float real; // or double



real x = real(23.0);



I'm not sure why that didn't occur to me last night...'

And yeah I'm being anal about precision even though its hardly an issue but it helps for arithmetic with pi or simply 1/3 like the above poster said.

PARTNERS