返回一个或多个数字的数量级。此功能适用于数组,并且支持指定基数。例如:

  • order(1.2e-5) 返回 -5
  • order(1) 返回 0
  • order(1.12344e8) 返回 8
  • 指定基数:order(1.2 * 2^5, 2) 返回 5