Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. calculate infinite precision

calculate infinite precision

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    How can i caluclate infinite precision with out loosing any decimal eg. 1.3 * .344536345234246356664745 I want the result with all decimal. which datatype can use. thks

    V S G 3 Replies Last reply
    0
    • L Lost User

      How can i caluclate infinite precision with out loosing any decimal eg. 1.3 * .344536345234246356664745 I want the result with all decimal. which datatype can use. thks

      V Offline
      V Offline
      valerian precop
      wrote on last edited by
      #2

      From what I know :) there is no way to calculate infinite precision with out loosing any decimal You may want to take a look at these data types The nearest datatypes you can use are float, double and decimal.

      Just call me Valy... :)

      1 Reply Last reply
      0
      • L Lost User

        How can i caluclate infinite precision with out loosing any decimal eg. 1.3 * .344536345234246356664745 I want the result with all decimal. which datatype can use. thks

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        Use Double Datatype. Double variables are stored as signed IEEE 64-bit (8-byte) double-precision floating-point numbers ranging in value from -1.79769313486231570E+308 through -4.94065645841246544E-324 for negative values and from 4.94065645841246544E-324 through 1.79769313486231570E+308 for positive values.

        Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus

        1 Reply Last reply
        0
        • L Lost User

          How can i caluclate infinite precision with out loosing any decimal eg. 1.3 * .344536345234246356664745 I want the result with all decimal. which datatype can use. thks

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          You can not have infinite precision, as you don't have an infinite amount of memory availabe. The Decimal data type is the built-in type that gives you the highest precision. If that is not enough, you need to create your own data type or find someone who has.

          --- single minded; short sighted; long gone;

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups