vis_files/generate_plots.js
/// Rounds a number when creating ticks
Rounds a number when creating ticks
Rounds a number when creating ticks
function rn(n)                                          
{
	var x;
	n = parseFloat(n);
	x = 0;
	do{
		num = n.toFixed(x);
		if((num-n)*(num-n) < 0.000000000000001) break;
		x++;
	}while(1 == 1);
	return num;
}
function rn ( n ) { var x ; n = parseFloat ( n ) ; x = 0 ; do { num = n . toFixed ( x ) ; if ( ( num - n ) * ( num - n ) < 0.000000000000001 ) break ; x ++ ; } while ( 1 == 1 ) ; return num ; }
Rounds a number when creating ticks
Rounds a number when creating ticks