I feel like I'm spamming you guys for help lately due to my poor internet search abilities... anyway, back and again with yet another question.

I'm wondering if there's a simple way to determine how many numbers are after the decimal place. ie: 100.00 has two vs. 100.0 which has one.

That's an artifact of how you're displaying the value, not the value itself. The only solid way would be to convert your value to a string using the same formatting modifiers, then count how many digits show after the radix.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.