ilyash
09-06-2008, 07:46 PM
Hey guys,
I don't know if this is a mysql bug, but if you do something like
select columna - (columnb/columnc) from table;
where they are all double, if the value of b/c is very small you will just get a 0 for that division
what would be the proper fix? like how do i tell it to keep it as a double and not convert to int?
I tried doing 1.0000* [the above]
and it works.. but there must be a better way
I don't know if this is a mysql bug, but if you do something like
select columna - (columnb/columnc) from table;
where they are all double, if the value of b/c is very small you will just get a 0 for that division
what would be the proper fix? like how do i tell it to keep it as a double and not convert to int?
I tried doing 1.0000* [the above]
and it works.. but there must be a better way
