+ 1

how to use data type float with switct ?

The condition be able have point value (weight) But switch can't accept value float,double . How to chage float to string ? Please Help comment

7th Jul 2017, 10:24 AM
នេត សម្បត្តិ
នេត សម្បត្តិ - avatar
3 Respostas
+ 1
float f = 13.5f; string s = f.ToString("R"); is the way to do it.
7th Jul 2017, 10:41 AM
Harm Zeinstra
Harm Zeinstra - avatar
+ 1
Oh thank you for sharing
7th Jul 2017, 10:52 AM
នេត សម្បត្តិ
នេត សម្បត្តិ - avatar
0
Np, mark as done?
7th Jul 2017, 1:36 PM
Harm Zeinstra
Harm Zeinstra - avatar