Hello
how can i make a change calculator?
for exmaple i want to buy an item thet cost 5.89$ and in canada no more 1 cents so how can round the number to 5.90?
vadimak
0
Newbie Poster
Recommended Answers
Jump to PostThis is how I tested for rounding to nearest five cents in https://www.pythonanywhere.com/try-ipython/ (useful as I have not Python and no Admin rights in work):
In [15]: granularity = .05 …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.