Hi,
I was wondering if anyone knows how to do this:
I want to get a price and then convert that price to a string of some sort so that I can reference a particular digit in that price.
For instance, I would want to be able to, say, get a price of 1.2879, then convert that price to something I can reference later, so that I can say something like
if (price[4] == 9 && price[3] == 7)
or something like that.
Any ideas?
I was wondering if anyone knows how to do this:
I want to get a price and then convert that price to a string of some sort so that I can reference a particular digit in that price.
For instance, I would want to be able to, say, get a price of 1.2879, then convert that price to something I can reference later, so that I can say something like
if (price[4] == 9 && price[3] == 7)
or something like that.
Any ideas?