How can I set the number of decimal places for a double value?
Decimal Places
Collapse
This topic is closed.
X
X
-
MAFTags: None -
Michael Mayer
Re: Decimal Places
You have to be specific. If you want a string representing a double using
some number of decimal places, try
string str = myDouble.ToStri ng ("F3");
to get 3 decimal places. Or look up String.Format
--
Mike Mayer
mike@mag37.com
"MAF" <mfraser@henwoo denergy.com> wrote in message
news:eMUCIN9dDH A.2432@TK2MSFTN GP10.phx.gbl...[color=blue]
> How can I set the number of decimal places for a double value?
>
>[/color]
Comment