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. General Programming
  3. C#
  4. Help required on dividing 256 bit value into 2 decimals??

Help required on dividing 256 bit value into 2 decimals??

Scheduled Pinned Locked Moved C#
questionhelpdocker
2 Posts 2 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.
  • F Offline
    F Offline
    Fang Illusion
    wrote on last edited by
    #1

    Posted a question a while ago: "Is there some way to manipulate/store/use 256 bit int/float/long so that finally a calculator for those 256 bit values can be made?" One suggestion was to divide that number into 2 decimals or 4 longs BUT I'm pretty much a newcomer :~ so could anyone help me out some little more and tell me howwww exactly to divide that 256 bit input into those 2 128 bit decimals? I mean the problem facing me is this: I take a string input (readline) and then have to convert that to some numerical form to perform the mathe operations...but to do that I have to have some container, a datatype big enough to hold that converted 256 bit value first right?...so how do I know how and from where to break that converted string input into 2 decimals actually during conversion? I do hope I haven't muddled this up :sigh:...BUT anything possible plz? :confused:... Thanks beforehand for time and help...

    J 1 Reply Last reply
    0
    • F Fang Illusion

      Posted a question a while ago: "Is there some way to manipulate/store/use 256 bit int/float/long so that finally a calculator for those 256 bit values can be made?" One suggestion was to divide that number into 2 decimals or 4 longs BUT I'm pretty much a newcomer :~ so could anyone help me out some little more and tell me howwww exactly to divide that 256 bit input into those 2 128 bit decimals? I mean the problem facing me is this: I take a string input (readline) and then have to convert that to some numerical form to perform the mathe operations...but to do that I have to have some container, a datatype big enough to hold that converted 256 bit value first right?...so how do I know how and from where to break that converted string input into 2 decimals actually during conversion? I do hope I haven't muddled this up :sigh:...BUT anything possible plz? :confused:... Thanks beforehand for time and help...

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      Hmmm... maybe this might help? http://www.codeproject.com/csharp/biginteger.asp[^]

      **"It is impossible to rightly govern the world without God and the Bible." -- George Washington

      FLUID UI Toolkit | FloodFill in C# & GDI+**

      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