use only 2 digis in simple precision
-
suppose a float f and if i am intrested only in using this float but having only 2 digits after the dot so what i want to do is to delete the remaining digits .. so how do i do this?
-
suppose a float f and if i am intrested only in using this float but having only 2 digits after the dot so what i want to do is to delete the remaining digits .. so how do i do this?
-
- You could use Math.Round(number,2); 2) You could use the decimal type 3) If the number is in a textbox replace it with numericUpDown and specify the number of digits
MDL=>Moshu wrote:
If the number is in a textbox replace it with numericUpDown and specify the number of digits
one can paste anything into a editable Control, so that won't cut it. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
-
MDL=>Moshu wrote:
If the number is in a textbox replace it with numericUpDown and specify the number of digits
one can paste anything into a editable Control, so that won't cut it. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.