carpetbelly
Technical User
Ok, quite a newbie to OO coding, and coding in general but I have picked it up ok.
Currently I am struggling with the fact I have some data being read in as a real value and has to be. I am requiring the last two digits of this data. I have basically two ways I know of and can do of obtaining these digits.
Multiplying my number by 100 (to make it a whole number rather than to 2dp) then use the DIV function (factor of 100) to get the number without DP. Then subtract that from my original number4. Unfortunately the DIV function requires my number as an integer rather than the 'real' format it was read in as.
Or i could use a string function and read in negatively (so from right to left) or go algabraeic and do something like
(lengthn) - (lengthn - 2) and use that as my starting position for a substring.
Any ideas on how I can get to these positons would be more than helpful!!!
Thanks!!!
Currently I am struggling with the fact I have some data being read in as a real value and has to be. I am requiring the last two digits of this data. I have basically two ways I know of and can do of obtaining these digits.
Multiplying my number by 100 (to make it a whole number rather than to 2dp) then use the DIV function (factor of 100) to get the number without DP. Then subtract that from my original number4. Unfortunately the DIV function requires my number as an integer rather than the 'real' format it was read in as.
Or i could use a string function and read in negatively (so from right to left) or go algabraeic and do something like
(lengthn) - (lengthn - 2) and use that as my starting position for a substring.
Any ideas on how I can get to these positons would be more than helpful!!!
Thanks!!!