Re: Working with floating point values
- From: "David Veeneman" <davidv@xxxxxxxxxx>
- Date: Tue, 9 Aug 2005 10:04:08 -0500
Thanks-- I'd thought about that, but I need to maintain the values as
doubles. And the time it would take to convert to string, then back to
double, would slow my calculations down noticeably.
"ranjeet" <ranjeet.athwal@xxxxxxxxx> wrote in message
news:opsu8u7hmzlvhghh@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> you could format the number like
> String.Format("{0:#,##0.00;#,##0.00;0.00}", myDecimal.ToString()) ;
> (assuming you want a string at the end)
>
> Ranjeet.
.
- Follow-Ups:
- Re: Working with floating point values
- From: Daniel Jin
- Re: Working with floating point values
- References:
- Working with floating point values
- From: David Veeneman
- Re: Working with floating point values
- From: ranjeet
- Working with floating point values
- Prev by Date: Re: Working with floating point values
- Next by Date: Re: Are global variable evil?
- Previous by thread: Re: Working with floating point values
- Next by thread: Re: Working with floating point values
- Index(es):
Relevant Pages
|