Jump to content

Rounding in Mips

- - - - -

  • Please log in to reply
1 reply to this topic

#1
Gibsonfirebird

Gibsonfirebird

    Newbie

  • Members
  • Pip
  • 4 posts
Hello all,

I'm new, I just googled programming forum. Needed some help on an assignment for school.

I have a floating point, for example, 67.788896, in a floating point register and I want to round it to 67.79 and display it. How do I do this? Supposedly one way is to convert each part of the floating point number to ints and then display each part. Not sure how to do this. Any help would be appreciated, thianks!

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,705 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
MIPS Floating Point Instruction Set
Play around with that. Lemme know if you're still stuck.
sudo rm -rf /




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users