c++ - Convert decimal dollar amount from string to scaled integer -


"35.28" stored char*. need turn integer (35280).

i want avoid floats. how can this?

remove dot char , then
simplest not best use atoi

see answer here, other possible ways.


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -