String convert to float ore decimal type with 0 decimals
Radni = rd.GetString("R1")String convert to float ore decimal type with 0 decimals
Radni = rd.GetString("R1")Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Nov 3, 2023, 4:22 AM
Hello Goran Bibic,
Please use this one,
Amit MohantyPosted Nov 2, 2023, 11:42 AM
To convert a string to a float or decimal type with 0 decimal places, you can use the
float.Parseordecimal.Parsemethod and then format the result with zero decimal places.