Incorrect calculation when using parentheses and untyped constants

Summary

The code line

a_rad := pi * 15 / 180; deliver another result as this a_rad := pi * (15 / 180);

Result of first = 0.261799387799149436561 rad ( = 15.000000000000000001700°)

Result of second = 0.261799395601379192631 rad ( = 15.000000447034835815400°)

That's not really correct and the reason isn't the binary system, I think.

System Information

  • Operating system: Linux Mint 22.1 Cinnamon
  • Processor architecture: AMD Ryzen PRO 4750U with Radeon Graphics × 8
  • Compiler version: <!-- 3.2.3, fixes
  • Device: <!-- Thinkpad T14s

Steps to reproduce

See my example and the pics, please.

Example Project

ExtendedTest_03.7z

What is the current bug behavior?

Relevant logs and/or screenshots

Auswahl_018

Auswahl_019

Possible fixes

Sorry, I have no idea.