How to convert a String to long in javascript? -


I have a millisecond timestamp that I need to change from string to long. I have a parseInt in javascript but there is no parseLong . So how can I do this?

Thanks

EDIT: To make a little detail on my question: apparently, there is not a long type in JavaScript, I have long been easy How can I make arithmetic, which are initially expressed as strings? To get Delta one time, one has to subtract one from the other?

A number type in javascript which is a 64 bit floating point number * .

If you want to convert a string to a number,

  1. use either if I am using parseInt , So I always want to go through Radix.
  2. Use the Unary + operator e.g. + "123456"
  3. Use constructor example var n = number ("12343")

    * There are circumstances where the numbers will be internally organized as integers.

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -