Hi
An unusual request but i'm wondering if anyone has any suggestions or can point me in the right direction.
I have a price for TY e.g. 100.235. I want to change the last 3 digits which are listed as a fraction into a decimal.
My idea is to initially turn the price into a variable e.g. entryPrice.
Then use entryPrice.toFixed(0) to get the whole number 100.
Now I am stuck how do I grab the 3 numbers after the decimal point?
If I could get this number I know how to manipulate the data into a decimal format.
Thanks
An unusual request but i'm wondering if anyone has any suggestions or can point me in the right direction.
I have a price for TY e.g. 100.235. I want to change the last 3 digits which are listed as a fraction into a decimal.
My idea is to initially turn the price into a variable e.g. entryPrice.
Then use entryPrice.toFixed(0) to get the whole number 100.
Now I am stuck how do I grab the 3 numbers after the decimal point?
If I could get this number I know how to manipulate the data into a decimal format.
Thanks
Comment