Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/skia/skia/src/utils/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  SkFloatToDecimal.h

  Sprache: C
 

/*
 * Copyright 2017 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SkFloatToDecimal_DEFINED
#define SkFloatToDecimal_DEFINED

constexpr unsigned kMaximumSkFloatToDecimalLength = 49;

/** \fn SkFloatToDecimal
    Convert a float into a decimal string.

    The resulting string will be in the form `[-]?([0-9]*\.)?[0-9]+` (It does
    not use scientific notation.) and `sscanf(output, "%f", &x)` will return
    the original value if the value is finite. This function accepts all
    possible input values.

    INFINITY and -INFINITY are rounded to FLT_MAX and -FLT_MAX.

    NAN values are converted to 0.

    This function will always add a terminating '\0' to the output.

    @param value  Any floating-point number
    @param output The buffer to write the string into.  Must be non-null.

    @return strlen(output)
*/

unsigned SkFloatToDecimal(float value, char output[kMaximumSkFloatToDecimalLength]);

#endif  // SkFloatToDecimal_DEFINED

Messung V0.5 in Prozent
C=92 H=93 G=92

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.