I want to divide two values that are in $tn
registers.
I have to divide these two values to get a double result but the function div
only returns the integer part of that division can anyone help out?
Do i need to convert $t1
and $t2
to $f0
and $f2
?
How do i do that?
li $t1,2
li $t2,5
div $f0,$t2,$t1
This gives me an error because it expects a $tn
value not a $fn
value...