Working with long?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LeeHarvey
    New Member
    • Mar 2007
    • 9

    Working with long?

    Hi,

    I am trying to work with "long" values without success. Any help on this would be much appreciated.

    Thanks
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN.

    Post your code please.

    Comment

    • LeeHarvey
      New Member
      • Mar 2007
      • 9

      #3
      Hi,

      I don't have any exact code snippet but I have tried with "Number" which is larger then the long I am trying to alert. Even soo, it rounds it off. I have search the web and the javscript documentation without result.

      Lets say I have an input field type hidden which I set to a big int from code behind. Then I try to alert it.

      Thanks

      Comment

      • iam_clint
        Recognized Expert Top Contributor
        • Jul 2006
        • 1207

        #4
        i think you can do something like


        10.0e10

        which would be
        100,000,000,000
        move the decimal 10 places


        You killed kenny(kennedy) heh.

        Comment

        • LeeHarvey
          New Member
          • Mar 2007
          • 9

          #5
          Thanks for the answer.

          It still rounds it off at the 16:th number. Guess I have to go code behind for success.

          Comment

          • iam_clint
            Recognized Expert Top Contributor
            • Jul 2006
            • 1207

            #6
            sorry I wasn't much help

            Comment

            Working...