Fraction in LMC

Discussion in 'Software' started by Sweet123456, Jan 21, 2013.

  1. Sweet123456

    Sweet123456 Private E-2

    Hey all,
    Does anyone deal with Little Man Computer? I want to know how can I put in fractions instead of integers!!! any ideas???
    You help is appreciated.
     
  2. PC-XT

    PC-XT Master Sergeant

    Input numerator and denominator separately, into different boxes.

    003 008 for 3/8

    Basically follow the rules of algebraic operations on fractions. The result will typically be a fraction, as well, unless you round it.

    If you mean decimal numbers, you can construct different kinds of floating point numbers in a similar way, by splitting it into parts of 3 digits each, (or however many your implementation supports.)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds