Re: TextBox and decimal numbers

Tech-Archive recommends: Speed Up your PC by fixing your registry



The number already is decimal.

"Joe Mayo" <jmayo@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el mensaje
news:e37cDqQRFHA.3560@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Alberto,
>
> Try changing the type of your number to a double or decimal, rather than a
> float.
>
> Joe
> --
> http://www.csharp-station.com
>
> "Alberto" <alberto@xxxxxxxxxx> wrote in message
> news:Ov2%23oyORFHA.2604@xxxxxxxxxxxxxxxxxxxxxxx
>>I have a textbox and when I ttry to insert a decimal number like 900000,99
>>in this way:
>>
>> txt.Text = number.ToString();
>>
>> I see 900001.
>>
>> It only happens in a proyect but I don't see why.
>> Can somebody help me?
>> Thank you?
>>
>
>


.



Relevant Pages

  • Re: Interview with NO mayor...
    ... Maybe we could have an election in, say, 2008 and vote ... Only this time the opposition can float a credible ... Prev by Date: ...
    (alt.smokers.cigars)
  • Re: Auto Drop down a Drop Down List
    ... will make it float above other content and appear to be fully expanded. ... the selection changes, you can set it back to position:static and .size=1 to ... Matt Kruse ... Prev by Date: ...
    (comp.lang.javascript)
  • Re: Configurazioni multiple per bluetooth...
    ... utilizzato è sempre l'ultimo configurato. ... Grazie, ... Alberto ... Prev by Date: ...
    (it.comp.macintosh)
  • Re: Floating text
    ... >> How do I make text float, so that as a person scrolls down a page, the ... >> navigation links will move down also? ... Prev by Date: ...
    (microsoft.public.frontpage.programming)
  • Re: Fri. 12/16 Will it Float? Item Prediction
    ... Maybe I need to make these clues a little tougher. ... So -- will it float or sink? ... Prev by Date: ...
    (alt.fan.letterman)