Neat-Lang / neat

The Neat Language compiler. Early beta?
BSD 3-Clause "New" or "Revised" License
111 stars 9 forks source link

cast long to double/float #75

Open unereal opened 3 months ago

unereal commented 3 months ago
long a = 1718271963;
auto b = cast(double) a;
print("b=$(b)");

result: b=0.000000

long a = 1718271963;
auto c = cast(float) a;
print("c=$(c)");

result: Segmentation fault.