Simple oxidizer bug float to int

(noman) #1

Hello, I am going through a textbook in java and trying to get the exercises to work in
oxygene-cooper. I have found that oxidizer converts float type to integer. This is easy to fix here but probably should not happen in the first place. Here are two
lines that show the conversion:

java original
double celsius = (5.0 / 9) * (fahrenheit - 32);

oxygene by oxidizer
var celsius: Double := (5 / 9) * (fahrenheit - 32);

of course this introduces a classic conversion error and compiles but the result is an error.

(RemObjects) #2

Thanks, logged as bugs://80372

(RemObjects) #3

bugs://80372 got closed with status fixed.