My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
43 {
47 
51 
56 
61 
63  rtl_math_StringFormat_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
65 };
66 
70 {
74 
78 
80  rtl_math_ConversionStatus_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
82 };
83 
87 {
91 
95 
99 
103 
107 
111 
115 
119 
121  rtl_math_RoundingMode_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
123 };
124 
129 {
133 
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)
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)
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 
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)
372 
386 SAL_DLLPUBLIC double SAL_CALL rtl_math_round(double fValue, int nDecPlaces,
387  enum rtl_math_RoundingMode eMode)
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: */