h5_access_log.go 387 B

12345678910111213141516171819
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. // package h5_access_log implement all interfaces for operation of h5 api log
  4. package h5_access_log
  5. import (
  6. "fmt"
  7. "strconv"
  8. )
  9. const (
  10. PAGESIZE = 10
  11. )
  12. func Decimal(value float64) float64 {
  13. value, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", value/1000), 64)
  14. return value
  15. }