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.6.0.tbz
sha256=24e60ef65737c2b8e762b98fbdbc836380425c35c5b3ffae657a14671e51d959
sha512=3868ca89255ebc03ea8a9ba6fe1604c8c5aad5060274d518be99a3300883ebeae864b8b68bf3782875c527a41828f40b3cb75d50179d6802ec0eafd59591af4f

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.