Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Data Protection For Estate Agencies In Singapore 2024

Authors: Yang Yen Thaw Yt

1st Edition

B0CQK79WD3, 979-8872095392

More Books

Students also viewed these Databases questions