will this always return the current system decimal separator? (SOLVED)
|
02-05-2018, 08:32 AM
(This post was last modified: 02-05-2018 11:23 PM by StephenG1CMZ.)
Post: #1
|
|||
|
|||
will this always return the current system decimal separator? (SOLVED)
I am not aware of a built-in "get the current decimal separator" function and I needed one because I have a program in which the system calls usually deliver "0." but ocassionally return "0".
So, I needed to find out whether to add a "." or a ",". This seems to work - but could there be a "fix 0" mode which might hide the separator? Code:
Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
will this always return the current system decimal separator? (SOLVED) - StephenG1CMZ - 02-05-2018 08:32 AM
RE: will this always return the current system decimal separator? - Didier Lachieze - 02-05-2018, 09:54 AM
RE: will this always return the current system decimal separator? - StephenG1CMZ - 02-05-2018, 10:35 AM
RE: will this always return the current system decimal separator? (SOLVED) - toml_12953 - 02-06-2018, 02:27 AM
RE: will this always return the current system decimal separator? (SOLVED) - Carlos295pz - 02-06-2018, 04:21 AM
|
User(s) browsing this thread: 1 Guest(s)