Skip to content
Prev 244226 / 398506 Next

More elegant magnitude method

Jonathan -
    If I understand correctly,

      max(0,floor(log(x,10)))

will return the value you want.

 					- Phil Spector
 					 Statistical Computing Facility
 					 Department of Statistics
 					 UC Berkeley
 					 spector at stat.berkeley.edu
On Tue, 7 Dec 2010, Jonathan P Daily wrote: