اینو
float i=1.265419618498498
نوشتم
این خطا رو
Error Literal of type double cannot be implicitly converted to type 'float'; use an 'F' suffix to create a literal of this type
میگیرم
اینو
float i=1.265419618498498
نوشتم
این خطا رو
Error Literal of type double cannot be implicitly converted to type 'float'; use an 'F' suffix to create a literal of this type
میگیرم
float i=1.234F
اخرش یه f بگذار
float تا 6 رقم اعشار میگیره ...اینی که نوشتی double هستش...... اگه اینجوری بنویسی ....
float i=1.265419618498498F فقط 6 تا رقم اعشار رو برمیداره....
double i= 1.2518489498498
convert.tosingle(i)
error
Object of type 'System.Double' cannot be converted to type 'System.Single'.
double i = 1.2518489498498;
Single s = (Single)i;