Does anyone know how I can read in a stored floating point number and convert it into a decimal/string format and then output it? I'm trying to mimic the floating point output bit of 2 but instead I need to use the string output form.

Example:

Fpnum: .float 3.14159

Start: lcw1 $f12, fpnum

Convert:
#convert the float number into a decimal/string format here...

I need to I guess break down the bits into the three parts of the float then out output the result as a string representation of the float. Please someone help me here.


Thanks to all ahead of time

Contemplate the possibilities of multiplying by ten, and of using the floating point FIST instruction.

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.