Pages: [1]   Go Down
Author Topic: Suggest addition to description of 'map' function  (Read 756 times)
0 Members and 1 Guest are viewing this topic.
Oregon
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Current version
"Does not constrain values to within the range, because out-of-range values are sometimes intended and useful. The constrain() function may be used either before or after this function, if limits to the ranges are desired. "

Suggested version
"Does not constrain values to within the range, because out-of-range values are sometimes intended and useful.  For example: if the incoming value is below the fromLow value, the outgoing value will be negative in proportion to the given toLow - toHigh range. The constrain() function may be used either before or after this function, if limits to the ranges are desired. "

I didn't know what exactly the map function would do with out-of range numbers.  With a short explanation like this I would have understood immediately.  I think it would be quite helpful to other learners (ok, noobs) like myself.

P.S. the reference page says to post suggestions in the forum and gives a link.  Is this the correct forum?

Logged

Pages: [1]   Go Up
Jump to: