daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function customValueToPosition(val, minVal, maxVal){
  2.             if(val < 1000000){
  3.               return ( val / 50000 ) * 0.01;
  4.             } else {
  5.               return (((val - 1000000) / 100000) * 0.005714285714286 + 0.2).toFixed(2);
  6.             }
  7.           };
RAW Paste Data
Top