Changeset 27 in code


Ignore:
Timestamp:
Aug 30, 2015, 12:45:06 PM (10 years ago)
Author:
zaitsev.serge
Message:

fixed math package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zs_ext.go

    r26 r27  
    88        "time"
    99
     10        "math"
     11
    1012        "github.com/drhodes/golorem"
    11         "github.com/google/gxui/math"
    1213        "github.com/jaytaylor/html2text"
    1314)
     
    99100func TimeToRead(args []string) int {
    100101        wc := WordCount(args)
    101         return int(math.Round(float64(wc) / float64(200)))
     102        return int(math.Floor(float64(wc)/200.0 + .5))
    102103}
Note: See TracChangeset for help on using the changeset viewer.