Locutus
C Go Python Ruby PHP | Blog Authors
C Go Python Ruby PHP | Blog Authors

PHP's math extension in JavaScript

  • abs
  • acos
  • acosh
  • asin
  • asinh
  • atan
  • atan2
  • atanh
  • base_convert
  • bindec
  • ceil
  • cos
  • cosh
  • decbin
  • dechex
  • decoct
  • deg2rad
  • exp
  • expm1
  • floor
  • fmod
  • getrandmax
  • hexdec
  • hypot
  • is_finite
  • is_infinite
  • is_nan
  • lcg_value
  • log
  • log10
  • log1p
  • max
  • min
  • mt_getrandmax
  • mt_rand
  • octdec
  • pi
  • pow
  • rad2deg
  • rand
  • round
  • sin
  • sinh
  • sqrt
  • tan
  • tanh

« More PHP functions

Locutus

All your standard libraries will be assimilated into our JavaScript collective. Resistance is futile.


Follow @locutus_io

Star
5 languages marked
334 functions assimilated

on the githubs

Loading...

all functions

  • C (3)
    • math (2)
    • stdio (1)
  • Go (4)
    • strings (4)
  • Python (5)
    • string (5)
  • Ruby (1)
    • Math (1)
  • PHP (321)
    • array (73)
    • bc (7)
    • ctype (11)
    • datetime (15)
    • exec (1)
    • filesystem (6)
    • funchand (5)
    • i18n (2)
    • info (6)
    • json (3)
    • math (46)
    • misc (2)
    • net-gopher (1)
    • network (6)
    • pcre (4)
    • strings (91)
    • url (8)
    • var (30)
    • xdiff (2)
    • xml (2)

recent posts

  • Easter Update

    2024-04-05

  • php.js is Dead - Long Live Locutus

    2016-05-02

  • Breaking Backwards Compatibility

    2016-04-20

© 2007-2025 Kevin van Zonneveld and authors.
Arwork by Troy Dodd.