Silverfrost Logo About Us | Contact Us
 

REAL

Platform

x64, Win32, .NET

Purpose

To convert to real type.

Class

Elemental function.

Syntax

REAL FUNCTION REAL(A [,KIND])
INTEGER KIND

Description

A is of type INTEGER, REAL or COMPLEX.

If A is of type INTEGER or REAL, the result is REAL and kind type of the result is KIND if it is present otherwise it is the default real kind. If A is of type COMPLEX, the result is REAL and the kind type of the result is KIND otherwise it is the kind type of A (i.e. A is COMPLEX and the result is REAL with the same kind type value).

Return value

If A is integer or real, the result is A.

If A is complex, the result is the real part A.

 

 

Copyright © 1999-2017 Silverfrost Limited