Another round of ll_round()
parent
711e3b6e4e
commit
ddf0f7a915
|
|
@ -139,22 +139,22 @@ namespace tut
|
|||
void math_object::test<9>()
|
||||
{
|
||||
F32 val = 430905.2654f, nearest = 100.f;
|
||||
val = llround(val, nearest);
|
||||
ensure("float llround value 1", (430900 == val));
|
||||
val = ll_round(val, nearest);
|
||||
ensure("float ll_round value 1", (430900 == val));
|
||||
val = -430905.2654f, nearest = 10.f;
|
||||
val = llround(val, nearest);
|
||||
ensure("float llround value 1", (-430910 == val));
|
||||
val = ll_round(val, nearest);
|
||||
ensure("float ll_round value 1", (-430910 == val));
|
||||
}
|
||||
|
||||
template<> template<>
|
||||
void math_object::test<10>()
|
||||
{
|
||||
F64 val = 430905.2654, nearest = 100.0;
|
||||
val = llround(val, nearest);
|
||||
ensure("double llround value 1", (430900 == val));
|
||||
val = ll_round(val, nearest);
|
||||
ensure("double ll_round value 1", (430900 == val));
|
||||
val = -430905.2654, nearest = 10.0;
|
||||
val = llround(val, nearest);
|
||||
ensure("double llround value 1", (-430910.00000 == val));
|
||||
val = ll_round(val, nearest);
|
||||
ensure("double ll_round value 1", (-430910.00000 == val));
|
||||
}
|
||||
|
||||
template<> template<>
|
||||
|
|
|
|||
Loading…
Reference in New Issue