News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

getting real numbers from console ..

Started by ishakteyran, March 31, 2008, 04:17:05 AM

Previous topic - Next topic

ishakteyran

in fact my question was about the code kermit sent ..  can i use fmul, fdiv or FpuMul, FpuDiv commands with numbers or strings converted with macros named a2r10 or real10() macros ....

and  does
Quote from: kermit on April 12, 2008, 10:15:26 PM

( i used real8 values because fmul /fdiv can only work directly with 8byte memory operands )


mean that i can not use fmul, fdiv with real10 numbers?

hutch--

This posting has not stopped looking like a homework request, show us YOUR code and you will get help, otherwise the thread will be closed. Check the no homework rule.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

ishakteyran

Quote from: hutch-- on April 13, 2008, 08:50:54 AM
This posting has not stopped looking like a homework request, show us YOUR code and you will get help, otherwise the thread will be closed. Check the no homework rule.

hey hutch... yes this is a hoımewrok but in it we are required to find the solution to a formula in form ax^2+bx+c ... as you see i never asked asked a question on how can i find a solution to this.. i only asked how can i get real input and print real output... i know how to use FPu .. what i have troublw with is console io on real numbers..

ok? and i tihnk these replies to my topic focus only on console io on real numbers.. no solution to my homework ... i can handle it myself :)

kermit

Quote
mean that i can not use fmul, fdiv with real10 numbers?
Quote

sure u can, but then both operands have to be in the fpu before, check the fputute tutorial from Raymond Filiatreault in the tutorial directory from the masm package ...


ishakteyran

thank you kermit :) i am pretty ready now ..

hutch--

ishakteyran,

The problem is you are still fishing for code instead of writing your own. I answered your original question as follows.

Quote
You can't, you can get a string and convert it to a REAL number which is how its normally done.

Unless I see your console IO code, this thread id dead. If you start writing your own code, you will get help but no-one will do it for you.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

hutch--

Hmmmm,

No code yet. This thread is closed.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php