PT_PointReal

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `PT_PointReal`

`PT_PointReal` -- converts a point to a real.

## Syntax

    #include <cogdb.h>

``double PT_PointReal`(PT_pCPOINT point);`

## Arguments

`point`

  A point whose value should be returned.

## Returns

A floating point representation of the point value.

## Description

This function attempts to find the most reasonable integer representation for the given point. This will depend on the input type of the point:

- PT_TYPE_INTEGER - the point value

- PT_TYPE_REAL - the point value

- PT_TYPE_STRING - atof() of the point value

## See Also

Point Structure, Storage, and Manipulation, PT_PointString, PT_PointInt, and PT_PointFormat

Prev | Home | Next
`PT_PointInt` | Up | `PT_PointString`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.