contents.gifprev1.gifnext1.gif

PES() - Price to earnings shares

Calculates number of shares based on the price to earnings ratio.

Returns

Long value if successful. If an error occurs, this function returns a zero.

Arguments

Type
Field
Description
double
dNI
Net income
double
dPrice
Price per share
double
dRatio
Price per share ratio
16 bit DLL declarations

PowerBuilder Function declaration

function long PES(double dNI, double dPrice, double dRatio) library "IFL16.DLL"

Visual Basic Function declaration

Declare Function PES lib "IFL16" (ByVal dNI As Double, ByVal dPrice As Double, ByVal dRatio As Double) As Long

C/C++ Synopsis

#include "function.h"

long PES(double dNI, double dPrice, double dRatio)

32 bit DLL declarations

PowerBuilder Function declaration

function long PES(double dNI, double dPrice, double dRatio) library "IFL32.DLL"

Visual Basic Function declaration

Declare Function PES lib "IFL32" (ByVal dNI As Double, ByVal dPrice As Double, ByVal dRatio As Double) As Long

C/C++ Synopsis

#include "function.h"

long PES(double dNI, double dPrice, double dRatio)

Example:

dNI
=
250,000

dPrice
=
10.50

dRatio
=
0.42

Result: 10,000 (shares)