  | 
		
HP OpenVMS DCL Dictionary
 
 
F$CUNITS
 
Converts a number from one specified unit of measure to another.
 
 
Format
F$CUNITS (number [,fron-units, to-units])
  
Return Value
 
A number representing the converted value.
 
Arguments
number
Specifies a 32-bit (or smaller) number to convert.
from-units
Specifies the unit of measure from which to convert. Currently, it is
optional to specify this argument, because the only supported option
for this field is blocks.
to-units
Specifies the unit of to which to convert. Currently, it is optional to
specify this argument, because the only supported option for this field
is bytes.
 
 
Example
 
  
     | 
   
    
       
      
$ WRITE SYS$OUTPUT F$CUNITS(554778, "BLOCKS", "BYTES")
270.88MB
      
      
     | 
   
 
This example converts 554778 blocks to the equivalent in bytes. The
result is 270.88 MB.
  
  
  
		 |