This uses truncation for all bases instead of for base 10 only.
gcc/ada/ChangeLog:
* libgnat/s-valued.adb (Integer_to_Decimal): Use truncation for the
scaled divide operation performed for bases other than 10.
raise Program_Error;
end if;
- -- Perform a scaled divide operation with rounding to match 'Image
+ -- Perform a scaled divide operation with truncation
- Scaled_Divide (To_Signed (V), Y, Z, Q, R, Round => True);
+ Scaled_Divide (To_Signed (V), Y, Z, Q, R, Round => False);
return Q;
end;