realtostr
realtostr |
Purpose
Generate the textual representation of a real value.
Synopsis
int realtostr(XPRMcontext ctx, char *buf, int bufsize, const char *realfmt, double v);
Arguments
|
ctx
|
Mosel's execution context
|
|
buf
|
Text buffer to store the resulting string
|
|
bufsize
|
Size of
buf
|
|
realfmt
|
C format for the conversion (may be
NULL)
|
|
v
|
Value to convert
|
Return value
Length of the generated string.
Further information
This function performs the same conversion as
printf, in particular it handles special values
nan and
inf and reports
0 if the value to convert is smaller than the current zero tolerance (Mosel parameter
zerotol). If the provided
realfmt is
NULL, the format defined in the current context is used (Mosel parameter
realfmt).
Related topics
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
