PDA

View Full Version : Decimal format -> stumped...


funk101
05-15-2007, 01:05 AM
I know this is a LAMO question but, I can't seem to get a huge double like:
77.272789487 to display as just 77.27. I'm looking for printf(), you know, adding a %.2f kind of thing, but it aint' happenin'! What is the call? I've tried decimal/float, and am getting a type conversion error.

NinjaTrader_Dierk
05-15-2007, 01:55 AM
Check out the double.ToString("0.00") method

funk101
05-15-2007, 02:05 AM
I've been looking for a long time for that one