My Project
UDK 3.2.7 C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rtl
math.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*************************************************************************
3
*
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
*
6
* Copyright 2000, 2010 Oracle and/or its affiliates.
7
*
8
* OpenOffice.org - a multi-platform office productivity suite
9
*
10
* This file is part of OpenOffice.org.
11
*
12
* OpenOffice.org is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 3
14
* only, as published by the Free Software Foundation.
15
*
16
* OpenOffice.org is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License version 3 for more details
20
* (a copy is included in the LICENSE file that accompanied this code).
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* version 3 along with OpenOffice.org. If not, see
24
* <http://www.openoffice.org/license.html>
25
* for a copy of the LGPLv3 License.
26
*
27
************************************************************************/
28
29
#if !defined INCLUDED_RTL_MATH_H
30
#define INCLUDED_RTL_MATH_H
31
32
#include "
rtl/ustring.h
"
33
#include "
sal/types.h
"
34
35
#if defined __cplusplus
36
extern
"C"
{
37
#endif
/* __cplusplus */
38
42
enum
rtl_math_StringFormat
43
{
46
rtl_math_StringFormat_E
,
47
50
rtl_math_StringFormat_F
,
51
55
rtl_math_StringFormat_G
,
56
60
rtl_math_StringFormat_Automatic
,
61
63
rtl_math_StringFormat_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
65
};
66
69
enum
rtl_math_ConversionStatus
70
{
73
rtl_math_ConversionStatus_Ok
,
74
77
rtl_math_ConversionStatus_OutOfRange
,
78
80
rtl_math_ConversionStatus_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
82
};
83
86
enum
rtl_math_RoundingMode
87
{
90
rtl_math_RoundingMode_Corrected
,
91
94
rtl_math_RoundingMode_Down
,
95
98
rtl_math_RoundingMode_Up
,
99
102
rtl_math_RoundingMode_Floor
,
103
106
rtl_math_RoundingMode_Ceiling
,
107
110
rtl_math_RoundingMode_HalfDown
,
111
114
rtl_math_RoundingMode_HalfUp
,
115
118
rtl_math_RoundingMode_HalfEven
,
119
121
rtl_math_RoundingMode_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
123
};
124
128
enum
rtl_math_DecimalPlaces
129
{
132
rtl_math_DecimalPlaces_Max
= 0x7ffffff,
133
138
rtl_math_DecimalPlaces_DefaultSignificance
= 0x7ffffff
139
};
140
141
206
SAL_DLLPUBLIC
void
SAL_CALL
rtl_math_doubleToString
(rtl_String ** pResult,
207
sal_Int32 * pResultCapacity,
208
sal_Int32 nResultOffset,
double
fValue,
209
enum
rtl_math_StringFormat
eFormat,
210
sal_Int32 nDecPlaces,
211
sal_Char
cDecSeparator,
212
sal_Int32
const
* pGroups,
213
sal_Char
cGroupSeparator,
214
sal_Bool
bEraseTrailingDecZeros)
215
SAL_THROW_EXTERN_C
();
216
281
SAL_DLLPUBLIC
void
SAL_CALL
rtl_math_doubleToUString
(rtl_uString ** pResult,
282
sal_Int32 * pResultCapacity,
283
sal_Int32 nResultOffset,
double
fValue,
284
enum
rtl_math_StringFormat
eFormat,
285
sal_Int32 nDecPlaces,
286
sal_Unicode
cDecSeparator,
287
sal_Int32
const
* pGroups,
288
sal_Unicode
cGroupSeparator,
289
sal_Bool
bEraseTrailingDecZeros)
290
SAL_THROW_EXTERN_C
();
291
327
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_stringToDouble
(
328
sal_Char
const
* pBegin,
sal_Char
const
* pEnd,
sal_Char
cDecSeparator,
329
sal_Char
cGroupSeparator,
enum
rtl_math_ConversionStatus
* pStatus,
330
sal_Char
const
** pParsedEnd)
SAL_THROW_EXTERN_C
();
331
367
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_uStringToDouble
(
368
sal_Unicode
const
* pBegin,
sal_Unicode
const
* pEnd,
369
sal_Unicode
cDecSeparator,
sal_Unicode
cGroupSeparator,
370
enum
rtl_math_ConversionStatus
* pStatus,
sal_Unicode
const
** pParsedEnd)
371
SAL_THROW_EXTERN_C
();
372
386
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_round
(
double
fValue,
int
nDecPlaces,
387
enum
rtl_math_RoundingMode
eMode)
388
SAL_THROW_EXTERN_C
();
389
402
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_pow10Exp
(
double
fValue,
int
nExp)
SAL_THROW_EXTERN_C
();
403
409
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_approxValue
(
double
fValue)
SAL_THROW_EXTERN_C
();
410
418
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_expm1
(
double
fValue)
SAL_THROW_EXTERN_C
();
419
427
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_log1p
(
double
fValue)
SAL_THROW_EXTERN_C
();
428
437
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_atanh
(
double
fValue)
SAL_THROW_EXTERN_C
();
438
446
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_erf
(
double
fValue)
SAL_THROW_EXTERN_C
();
447
455
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_erfc
(
double
fValue)
SAL_THROW_EXTERN_C
();
456
464
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_asinh
(
double
fValue)
SAL_THROW_EXTERN_C
();
465
473
SAL_DLLPUBLIC
double
SAL_CALL
rtl_math_acosh
(
double
fValue)
SAL_THROW_EXTERN_C
();
474
475
#if defined __cplusplus
476
}
477
#endif
/* __cplusplus */
478
479
#endif
/* INCLUDED_RTL_MATH_H */
480
481
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Mon Oct 8 2012 00:36:42 for My Project by
1.8.1.2