Mapping a value in python: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

20 March 2017

  • curprev 12:0412:04, 20 March 2017Michael Murtaugh talk contribs 159 bytes +159 Created page with " <source lang="python"> def map (v, inlow, inhigh, outlow, outhigh): p = (float(v) - inlow) / inhigh return outlow + (p * (outhigh - outlow)) </source>"