improve upon stylistic choice of Mul function
The function seemed too crammed to me, so I made it look much more spacious than before. Signed-off-by: IO-23 Oleh Shmuliar <hasslesstech@tutanota.com>
This commit is contained in:
parent
8b7e818d3a
commit
71f04b9f60
|
@ -10,7 +10,11 @@ int Calculator::Sub (double a, double b)
|
||||||
return Add (a, -b);
|
return Add (a, -b);
|
||||||
}
|
}
|
||||||
|
|
||||||
int Calculator::Mul (double a, double b)
|
int
|
||||||
|
Calculator::Mul(double a,
|
||||||
|
double b)
|
||||||
{
|
{
|
||||||
return a * b + 0.5;
|
return a
|
||||||
|
* b
|
||||||
|
+ 0.5;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue