Hallo,
ich habe eine Frage. Wie würdet ihr das Problem lösen?
Ich bekomme einen INT z.B 3117906
Die richtige Form des INT müsste aber 8 Nachkommastellen haben. Also:
0.03117906
Vor dem Komma könnte auch eine unendlich lange Zahl stehen z.B:
123.12643829
Wie konvertiere ich das am besten um?
Danke!
Nachkommastellen auffüllen
- __blackjack__
- User
- Beiträge: 14335
- Registriert: Samstag 2. Juni 2018, 10:21
- Wohnort: 127.0.0.1
- Kontaktdaten:
Wird hier vielleicht einfach nur stinknormale Division gesucht?
Code: Alles auswählen
In [43]: 3117906 / 10**8
Out[43]: 0.03117906„Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.“ — Brian W. Kernighan
