DarkDot 0 Newbie Poster

I am making an interest calculation program and can't figure out how to get the integer number input by the user into a decimal number. For example I don't know how to make 5, into .05 in MIPS assembly language. I've tried div but I can't get it to work I'll include my code for it. Any help is greatly appreciated.

**In $s1 is the value 5

li	$t3,	100
	div	$s1,	$t3
	mfhi	$s1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.