Skip to main content
deleted 19 characters in body
Source Link
nph
  • 1.4k
  • 10
  • 29

JavaScript (V8), 3333 32 bytes

a=>Math.exp((a-31)~a/16-2).toFixed(2)

Try it online!Try it online!

Edit: Made it comply with the "Round to the second decimal place" rule.Thanks to @my pronoun is monicareinstate for -1 byte

JavaScript (V8), 33 bytes

a=>Math.exp((a-31)/16).toFixed(2)

Try it online!

Edit: Made it comply with the "Round to the second decimal place" rule.

JavaScript (V8), 33 32 bytes

a=>Math.exp(-~a/16-2).toFixed(2)

Try it online!

Thanks to @my pronoun is monicareinstate for -1 byte

added 101 characters in body
Source Link
nph
  • 1.4k
  • 10
  • 29

JavaScript (V8), 2233 bytes

a=>Math.exp((a-31)/16).toFixed(2)

Try it online!Try it online!

Edit: Made it comply with the "Round to the second decimal place" rule.

JavaScript (V8), 22 bytes

a=>Math.exp((a-31)/16)

Try it online!

JavaScript (V8), 33 bytes

a=>Math.exp((a-31)/16).toFixed(2)

Try it online!

Edit: Made it comply with the "Round to the second decimal place" rule.

Source Link
nph
  • 1.4k
  • 10
  • 29

JavaScript (V8), 22 bytes

a=>Math.exp((a-31)/16)

Try it online!