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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -