steph1111 / PRECISE

Precision Rules Enforced Calculations In Scientific Environments
Other
0 stars 0 forks source link

sig_float: Overline with addition/subtraction #43

Open steph1111 opened 1 year ago

steph1111 commented 1 year ago

As cisco how this should work

num1 = sig_float("55")
num2 = sig_float("55")
num3 = sig_float("1.0")
num4 = sig_float("1.0")
print(RED + f"3) {num1} * {num2} * {num3} + {num4} = {num1 * num2 * num3 + num4}" + GREEN) # Should be overlined
12) 55  * 55  * 1.0  + 1.0  = 3000 

Originally posted by @steph1111 in https://github.com/steph1111/PRECISE/issues/27#issuecomment-1529152281

steph1111 commented 1 year ago

This suddenly resolved itself without writing code for it??? Needs further testing

4) 55 * 55 * 1.0 + 1.0 = 3\bar{0}00