GEOS
3.14.0dev
src
deps
ryu
ryu.h
1
// Copyright 2018 Ulf Adams
2
//
3
// The contents of this file may be used under the terms of the Apache License,
4
// Version 2.0.
5
//
6
// (See accompanying file LICENSE-Apache or copy at
7
// http://www.apache.org/licenses/LICENSE-2.0)
8
//
9
// Alternatively, the contents of this file may be used under the terms of
10
// the Boost Software License, Version 1.0.
11
// (See accompanying file LICENSE-Boost or copy at
12
// https://www.boost.org/LICENSE_1_0.txt)
13
//
14
// Unless required by applicable law or agreed to in writing, this software
15
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16
// KIND, either express or implied.
17
#ifndef RYU_H
18
#define RYU_H
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
24
#include <inttypes.h>
25
26
/* Print the shortest representation of a double using fixed notation
27
* Only works for numbers smaller than 1e+17 (absolute value)
28
* Precision limits the amount of digits of the decimal part
29
*/
30
int
geos_d2sfixed_buffered_n(
double
f, uint32_t precision,
char
* result);
31
32
/* Print the shortest representation of a double using scientific notation
33
* Precision limits the amount of digits of the decimal part
34
*/
35
int
geos_d2sexp_buffered_n(
double
f, uint32_t precision,
char
* result);
36
37
#ifdef __cplusplus
38
}
39
#endif
40
41
#endif
// RYU_H
Generated by
1.9.8