JesseBonanno / IndeterminateBeam

A solver for 1D indeterminate beams
MIT License
69 stars 20 forks source link

Decimal Points for kN Units #28

Closed berkdemir closed 2 years ago

berkdemir commented 2 years ago

Hi, Decimal points are default .3f and no option to change. It looks weird when you move to kN & kNm with big beams. An example below. Maybe this option can be squeezed into the update_units() as an option to the user? image

JesseBonanno commented 2 years ago

Hi @berkdemir ,

Agreed.

I have made the change as requested with version v2.2.0.

The changes are made in commit 6ce5def.

To change the units in code use the update_decimal_precision function. i.e. beam.update_decimal_precision(1)

In the web app there is a new slider in the options that can be used.

Best, Jesse