Oct-20-2022, 05:25 PM
(Oct-20-2022, 04:13 PM)deanhystad Wrote: I don't think you can automatically print a float with no fraction component and have it look like an int.
i meant
decimal.Decimal("37")
vs decimal.Decimal("37.0")
.what i want is a way to have
decimal.Decimal("37.0")
print as "37" while decimal.Decimal("37.1")
prints as "37.1". since decimal.Decimal("37")
prints as intended, i was looking for a method like my_decimal_number.remove_fraction_if_zero()
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.