10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Number Class<br />

toText()<br />

trunc()<br />

Syntax<br />

Bytes toBytes() const;<br />

This method converts the Number object to a formatted string based on the<br />

parameters specified.<br />

Syntax<br />

string toText(const Environment *envp,<br />

const string &fmt,<br />

const string &nlsParam = "") const;<br />

Parameters<br />

envp<br />

The OCCI environment.<br />

fmt<br />

The format string.<br />

nlsParam<br />

The nls parameters string. If nlsParam is specified, this determines the nls<br />

parameters to be used for the conversion. If nlsParam is not specified, the nls<br />

parameters are picked up from envp.<br />

This method returns the Number object truncated at the number of decimal places<br />

provided by the parameter specified.<br />

Syntax<br />

const Number trunc(int decplace) const;<br />

8-124 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong><br />

See Also: <strong>Oracle</strong>9i SQL Reference for information on TO_CHAR.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!