P
Patrick De Ridder
s is a string
f is a single precision float
f = float.Parse(s);// (a)
f = Convert.ToSingle(s);// (b)
Is (a) just as good as (b)?
If one should be used, not the other, please give the reason.
Patrick.
f is a single precision float
f = float.Parse(s);// (a)
f = Convert.ToSingle(s);// (b)
Is (a) just as good as (b)?
If one should be used, not the other, please give the reason.
Patrick.