HPlogo HP Assembler Reference Manual: HP 9000 Computers > Chapter 4 Assembler Directives and Pseudo-Operations

.DOUBLE Pseudo-Operation

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The .DOUBLE pseudo-operation initializes a double-word to a floating-point value, calculated from the parameters provided. If the location counter, is not aligned on a double-word boundary, it is forced to the next multiple of eight. If the statement is labeled, the label refers to the first byte of the storage area.

Syntax

.DOUBLE integer [.fraction] [E [-]power]

.DOUBLE .fraction [E[-]power]

Parameters

integer

Specifies the whole number part of a decimal number.

fraction

Specifies the fractional part of a decimal number.

power

Specifies the power of ten to raise a decimal number. To raise the decimal number to a negative power of ten, place a minus sign (-) directly in front of the power specified.

Example

Each of the following examples initializes two words of memory to floating-point quantities: 0.00106 and 400000.0 respectively.

dec_val1  .DOUBLE 10.6E-4

dec_val2 .DOUBLE 0.4E6
© 1998 Hewlett-Packard Development Company, L.P.