Commit e2ebf41f authored by Han Young's avatar Han Young
Browse files

change the result of division between two integer to float

parent b6312926
......@@ -244,7 +244,7 @@ knumber_base *knumber_integer::div(knumber_base *rhs) {
if(knumber_integer *const p = dynamic_cast<knumber_integer *>(rhs)) {
knumber_fraction *q = new knumber_fraction(this);
auto *q = new knumber_float(this);
delete this;
return q->div(p);
} else if(knumber_float *const p = dynamic_cast<knumber_float *>(rhs)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment