Hallo,
I want to ask.. How to remove decimal if the value is zero. Example 123,456,789.00 <--- how to remove 00 ?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hallo,
I want to ask.. How to remove decimal if the value is zero. Example 123,456,789.00 <--- how to remove 00 ?
Thanks
I think in python you can do something like:
if(num.find(".00")){ #maybe this find method don't works, so see below
int(num)
}
Or directly, if you don't want do the condition: int(num)
Examples:
num=0.999 -> int(num) -> num=0
num=123.456 -> int (num) -> num=123
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
1
de set. 24
|
4460 | |||
|
1
d’abr. 24
|
2538 | |||
|
2
de gen. 24
|
2477 | |||
|
Error message
Solved
|
2
de nov. 23
|
3809 | ||
|
1
de març 24
|
2868 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.