![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
|
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. |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
Check out the double.ToString("0.00") method
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
|
I've been looking for a long time for that one
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stumped! | pivot44 | ATM Strategies (Discretionary Trading) | 3 | 03-23-2007 02:39 AM |
| Indicator convert from decimal to 32nds | Json | Indicator Development | 5 | 03-08-2007 01:45 AM |
| Format for NTOrderStatus | hmmerritt | Automated Trading | 1 | 08-08-2006 06:53 AM |
| Need Timestamp Format | aspTrader | Automated Trading | 1 | 12-11-2005 08:46 PM |
| ZN format | boblin | Suggestions And Feedback | 1 | 04-26-2005 10:50 AM |