
Dividing numbers
Right, I am kind of sorry for bothering you guys with a beginner question like this, but I cannot get over this relatively simple problem.
So, I have this number, lets say, 12345678 and I want to turn it into number 12,3456789. How do I do that? 12345678/1000000 outputs 12.

Re: Dividing numbers
That's how integer division works: it throws away any fraction (digits right of the decimal point); if at least one of the operands isn't an int, 'normal' division is applied; (hint 1000000.0 isn't an int).
kind regards,
Jos

Re: Dividing numbers
1000000.0
Without that it is treated as integer division, which gives an integer result.

Re: Dividing numbers
I knew I should have refreshed the page....