How to? (student need help)

Representation of decimal data in fixed binary is difficult.

What you have will work, but you have to tell the Assembler how many

binary digits to allow for the fraction by using the scale modifier.

For example

NUMBER DC FS4'1.5'

Will correctly convert the number to X'00000018' (I think).

I fiddled around with this last year, and was not impressed with the

end results after I tried to do arithmetic on the values.

In my opinion, if you really want to do fixed point decimal numbers, you

are almost 100% better off using packed decimal numbers.

Quote:

>Enter a number with a virgule in a full word?

>Example : NUMBER DC F'1,8' or F'1.8' but it doesn't work :-(

-- Steve Myers

The E-mail addresses in this message are private property. Any use of them

to send unsolicited E-mail messages of a commerical nature will be

considered trespassing, and the originator of the message will be sued in

small claims court in Camden County, New Jersey, for the maximum penalty

allowed by law.