Question: MIPS : Mulitply float! I write code that mulitply float(0.1) and float (0.1) i expect print 0.01 but, print 0.010000001 why?? how to reusult will

MIPS : Mulitply float!

I write code that mulitply float(0.1) and float (0.1)

i expect print 0.01

but, print 0.010000001 why??

how to reusult will be 0.01?

below is my code

.data

floating : .float 0.1

int : .float 0.1

.text

.globl main

main:

l.s $f1,floating

l.s $f2, int

mul.s $f12,$f1,$f2

li $v0,2

syscall

li $v0,10

syscall

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!