SDK Home Glossary Index Left Right Up

RealFormat


Section contents


Overview

Defined in

cdescriptor.oxh

Description

<TBS>

Class table
Class Des
Construction NewRealFormat
DeleteRealFormat
Methods Places
Point
SetPlaces
SetPoint
SetTriad
SetTriLen
SetType
SetWidth
Triad
TriLen
Type
Width
See also

DesAppendNumFloat, DesNumFloat


Construction / destruction


NewRealFormat - Constructor

Usage

this& = NewRealFormat&:

Description

Creates a real format object and returns a handle which allows the object to be manipulated.

Return Value
this& An value which represents the created real format object
Error Handling

If the object could not be created then an error is generated which should be trapped by an ONERR handler.

Example
  LOCAL this&

  this& = NewRealFormat&:
  DeleteRealFormat:(this&) 

DeleteRealFormat - Destructor

Usage

DeleteRealFormat:(BYREF this&)

Description

Destroys the real format object.

Arguments
this& A handle to a real format object
Example
  LOCAL this&

  this& = NewRealFormat&:
  DeleteRealFormat:(this&) 

Methods provided


RealFormatPlaces

Usage

places& = RealFormatPlaces&:(this&)

Description

Returns the number of characters that represent the decimal portion of the number, or the maximum number of significant digits. The interpretation depends in the format defined by RealFormatSetType:().

Arguments
this& A handle to a real format object
Return value
places& The number of characters that represent the decimal portion of the number, or
The maximum number of significant digits.

RealFormatPoint

Usage

point% = RealFormatPoint%:(this&)

Description

The characters used to defined the decimal point.

Arguments
this& A handle to a real format object
Return value
point% The character used to representation the decimal point

RealFormatSetPlaces

Usage

RealFormatSetPlaces:(this&,places&)

Description

<TBS>

Arguments
this& A handle to a real format object
places& <TBS>

RealFormatSetPoint

Usage

RealFormatSetPoint:(this&,point&)

Description

<TBS>

Arguments
this& A handle to a real format object
point& <TBS>

RealFormatSetTriad

Usage

RealFormatSetTriad:(this&,triad%)

Description

<TBS>

Arguments
this& A handle to a real format object
triad% <TBS>

RealFormatSetTriLen

Usage

RealFormatSetTriLen:(this&,len&)

Description

<TBS>

Arguments
this& A handle to a real format object
len& <TBS>

RealFormatSetType

Usage

RealFormatSetType:(this&,type&)

Description

<TBS>

Arguments
this& A handle to a real format object
type& <TBS>

RealFormatSetWidth

Usage

RealFormatSetWidth:(this&,width&)

Description

<TBS>

Arguments
this& A handle to a real format object
width& <TBS>

RealFormatTriad

Usage

triad% = RealFormatTriad%:(this&)

Description

The character used to separated ever three characters in the integer part of the number.

Arguments
this& A handle to a real format object
Return value
triad% Character used as the thousand separator

RealFormatTriLen

Usage

trilen& = RealFormatTriLen&:(this&)

Description

<TBS>

Arguments
this& A handle to a real format object
Return value
trilen& The number of characters before using the Triad character

RealFormatType

Usage

type& = RealFormatType&:(this&)

Description

<TBS>

Arguments
this& A handle to a real format object
Return value
type& <TBS>

RealFormatWidth

Usage

width& = RealFormatWidth&:(this&)

Description

The maximum number of characters used to represent the number.

Arguments
this& A handle to a real format object
Return value
width& The maximum number of characters used to represent the number

  SDK Home Glossary Index Left Right Up