package quickjs

  1. Overview
  2. Docs
Bindings for QuickJS (a Javascript Engine to be embedded https://bellard.org/quickjs)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

quickjs-0.5.0.tbz
sha256=4aeb2c5dd5ac80f9bcc2b8a005cf655891e107bfb7e33bc43200772e49c49028
sha512=54730404786219b47aef7e558a6826108024ab80ed9e7dbcf3c8eb5e1f2b275dd3d034f3038276b15c4839fbc3aa5a8ad9c9244e4f79d6075ca106a09001cc23

doc/quickjs.c/Quickjs_c/Atod/index.html

Module Quickjs_c.AtodSource

Low-level bindings to QuickJS's atod - ASCII to Double conversion

JavaScript-compatible floating point parsing (atod = Ascii TO Double). These are raw C bindings; for a higher-level API, use Quickjs.Global.

Parse string to double with JS semantics. Flags: JS_ATOD_INT_ONLY | JS_ATOD_ACCEPT_BIN_OCT | etc. Sets *poffset to the number of bytes consumed (0 when parsing failed). Returns NaN when nothing could be parsed.