libpostal-sys 0.1.1

Low-level wrappers for libpostal address normalization (with locks to support thread-safe initialization)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef FLOAT_UTILS_H
#define FLOAT_UTILS_H

#include <stdlib.h>
#include <stdbool.h>
#include <float.h>
#include <math.h>

bool float_equals(float a, float b);
bool float_equals_epsilon(float a, float b, float epsilon);
float fsign(float x);

bool double_equals(double a, double b);
bool double_equals_epsilon(double a, double b, double epsilon);
double sign(double x);

#endif