0
In the database(SQL
) I have a field called Valor
which is a decimal and contains the following value: 21581 that would be R$215.81
But in doing the casting
of this value he is returning
$"{reader["valor"]:c}"
"R$ 21.581,00"
0
In the database(SQL
) I have a field called Valor
which is a decimal and contains the following value: 21581 that would be R$215.81
But in doing the casting
of this value he is returning
$"{reader["valor"]:c}"
"R$ 21.581,00"
0
The conversion is correct.
For the converted value to be R$215.81, should be recorded at the base as 215.81
Browser other questions tagged c# cast
You are not signed in. Login or sign up in order to post.
C#?? Split by 10, no?
– LS_ᴅᴇᴠ
@Ls_dev not, for 100, thanks for the tip.. was a north for the resolution
– JcSaint