This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CFLAGS=-O2 make parse-float */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main (int argc, const char *argv[]) | |
{ | |
const char *buf = "0.45494253843119004"; | |
int i; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
'use strict'; | |
const minus = '-'.charCodeAt(0); | |
const plus = '+'.charCodeAt(0); | |
// TODO: handle E notation | |
const dot = '.'.charCodeAt(0); | |
const exponent = 'e'.charCodeAt(0); | |
const exponentCapital = 'E'.charCodeAt(0); |