The core of it would be something like this:
int a,b,c,d,e,s;
...
s=a+b+c+d+e;
5,000,005
5,000
.05
If you are talking numerically, which is in numbers, the answer is 4.05 However, to write it out, you can write four point zero five
I would write it like this 5,000,000.
To write five million dollars in numbers, you would write $5,000,000.00. Five million dollars would be written with the number five followed by six zeros, a decimal point, and two more zeros.
1,525
The correct way to write it in numbers is: 5,008,023.
500,000,000
5,000,000
3500
18.05