Oct-20-2022, 05:14 PM
(Oct-20-2022, 05:55 AM)rob101 Wrote: Not too sure if I fully understand, but here goes:that's float. use decimal, like
number = 37.0 print(f"number with the decimal place: {number}") print(f"number without the decimal place: {number:.0f}")
Output:number with the decimal place: 37.0 number without the decimal place: 37
decimal.Decimal(111)/decimal.Decimal(3)
. and don't add on your own formatting.i guess i didn't make it clear enough that i am referring to type decimal.Decimal.
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.