I'm attempting to do some manipulations on array values that I have obtained from an API query within a React.js environment. However, these array values are numbers that are stored as "strings"
, e.g., "1.02011"
. I'm now attempting to take the inverse of this value as I wish to do some extra tricky stuff with it.
So, I have: var usdgbp = parseFloat({this.state.quotes ? this.state.quotes.USDGBP : null});
{this.state.quotes ? this.state.quotes.USDGBP : null}
is something which is working fine elsewhere in the code...so, I'm thinking - what is the correct way of parsing the number out from a string of this nature/type, and within the React.js class Module extends React.Component {}
setup.