# JavaScript - Calculator

### Quick and easy calculator

 DecHexOct a = b = c = d =

Enter a numeric expression and press ENTER to calculate.

Get last result by pressing ENTER again.

Use TAB and SHIFT+TAB to jump between fields.

Use SHIFT+Arrows, CTRL+C and CTRL+V to mark, copy and paste.

Variables a to d may be used.

Number format: 123.456E+123

 Numeric Operators + Addition - Subtraction * Multiplication / Division % Modulus
 Bitwise Operators & Bitwise logic AND | Bitwise logic OR ^ Bitwise logic XOR ~ Bitwise logic NOT << Left shift >> Signed right shift >>> Unsigned right shift

The JavaScript syntax and expression parser is used, so exact behavior (precision, precedence, etc.) depends on the client browser.

Functions, constants and variables are case sensitive.

 Mathematical Constants E Euler's Number e, 2.7182… LN2 Natural log of 2, 0.6931… LN10 Natural log of 10, 2.3025… LOG2E Base 2 log of e, 1.4426… LOG10E Base 10 log of e, 0.4342… PI Archimedes' Constant π, 3.1415… SQRT1_2 Square root of 1/2, 0.7071… SQRT2 Square root of 2, 1.4142…

 Physical Constants C0 Speed of light in vacuum, 299792458 m/s E0 Vacuum permittivity (electric constant), 8.854187817…E-12 F/m EC Elementary charge, 1.602176634E-19 C G0 Standard gravity, 9.80665 m/s2 GC Gravitational constant, 6.6743E-11 N∙m2/kg2 HC Planck constant, 6.62607015E-34 J∙s KB Boltzmann constant, 1.380649E-23 J/K NA Avogadro constant, 6.02214076E23 mol-1 R Molar gas constant, 8.31446261815324 J/(mol∙K) U0 Vacuum permeability (magnetic constant), 1.2566370614…E-6 N/A2

 Imperial Units FT Foot in m, 0.3048 m/ft IN Inch in mm, 25.4 mm/in LB Pound in kg, 0.45359237 kg/lbm PSI Pound per square inch (lbf/in2) in Pa (N/m2), 6894.757293168 Pa/psi YD Yard in m, 0.9144 m/yd