Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • 1
    \$\begingroup\$ printf"%.2f\n",1.06449445**($_-31) saves two. \$\endgroup\$ Commented Aug 2, 2020 at 16:51
  • 1
    \$\begingroup\$ Do you need the \n? (You can only take one input at a time without it, but there's nothing wrong with that.) \$\endgroup\$
    – Dingus
    Commented Aug 3, 2020 at 3:22
  • \$\begingroup\$ @JonathanAllan Thanks, and I also see that for the range 0-125 then 1.06449445 can be shortened to 1.0644944 and still give the same results when rounding to 2 decimals. \$\endgroup\$
    – Kjetil S
    Commented Aug 3, 2020 at 7:48
  • \$\begingroup\$ Thanks to @Dingus also. \$\endgroup\$
    – Kjetil S
    Commented Aug 3, 2020 at 7:49
  • 1
    \$\begingroup\$ Shorter yet: 27 bytes \$\endgroup\$
    – Xcali
    Commented Dec 12, 2020 at 6:46