Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
double_conversion.h
Go to the documentation of this file.
1// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_VM_DOUBLE_CONVERSION_H_
6#define RUNTIME_VM_DOUBLE_CONVERSION_H_
7
8#include "vm/allocation.h"
9#include "vm/globals.h"
10#include "vm/object.h"
11
12namespace dart {
13
14void DoubleToCString(double d, char* buffer, int buffer_size);
15StringPtr DoubleToStringAsFixed(double d, int fraction_digits);
16StringPtr DoubleToStringAsExponential(double d, int fraction_digits);
17StringPtr DoubleToStringAsPrecision(double d, int precision);
18
19bool CStringToDouble(const char* str, intptr_t length, double* result);
20
21IntegerPtr DoubleToInteger(Zone* zone, double val);
22
23} // namespace dart
24
25#endif // RUNTIME_VM_DOUBLE_CONVERSION_H_
static uint32_t buffer_size(uint32_t offset, uint32_t maxAlignment)
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE auto & d
Definition main.cc:19
static const uint8_t buffer[]
GAsyncResult * result
size_t length
StringPtr DoubleToStringAsPrecision(double d, int precision)
void DoubleToCString(double d, char *buffer, int buffer_size)
bool CStringToDouble(const char *str, intptr_t length, double *result)
IntegerPtr DoubleToInteger(Zone *zone, double val)
StringPtr DoubleToStringAsFixed(double d, int fraction_digits)
StringPtr DoubleToStringAsExponential(double d, int fraction_digits)