Re: TextBox and decimal numbers
- From: "Alberto" <alberto@xxxxxxxxxx>
- Date: Tue, 19 Apr 2005 20:11:18 +0200
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?
>>
>
>
.
- Follow-Ups:
- Re: TextBox and decimal numbers
- From: Joe Mayo
- Re: TextBox and decimal numbers
- References:
- TextBox and decimal numbers
- From: Alberto
- Re: TextBox and decimal numbers
- From: Joe Mayo
- TextBox and decimal numbers
- Prev by Date: Re: static classes & threading
- Next by Date: Re: Interate with objects
- Previous by thread: Re: TextBox and decimal numbers
- Next by thread: Re: TextBox and decimal numbers
- Index(es):
Relevant Pages
|