1#pragma once
2
3#include <common/Types.h>
4
5/** Almost the same as x = x * exp10(exponent), but gives more accurate result.
6 * Example:
7 * 5 * 1e-11 = 4.9999999999999995e-11
8 * !=
9 * 5e-11 = shift10(5.0, -11)
10 */
11
12double shift10(double x, int exponent);
13float shift10(float x, int exponent);
14
15double shift10(UInt64 x, int exponent);
16double shift10(Int64 x, int exponent);
17