diff --git a/projectnetwork.go b/projectnetwork.go index 4d52279..a7ec5e1 100644 --- a/projectnetwork.go +++ b/projectnetwork.go @@ -95,12 +95,12 @@ type activity struct { func (a *activity) Attributes() []encoding.Attribute { return []encoding.Attribute{ - {"DUR", strconv.FormatFloat(a.duration, 'g', -1, 64)}, - {"ES", strconv.FormatFloat(a.earlyStart, 'g', -1, 64)}, - {"EF", strconv.FormatFloat(a.earlyFinish, 'g', -1, 64)}, - {"LS", strconv.FormatFloat(a.lateStart, 'g', -1, 64)}, - {"LF", strconv.FormatFloat(a.lateFinish, 'g', -1, 64)}, - {"SLACK", strconv.FormatFloat(a.slack, 'g', -1, 64)}, + {"DUR", strconv.FormatFloat(a.duration, 'f', 2, 64)}, + {"ES", strconv.FormatFloat(a.earlyStart, 'f', 2, 64)}, + {"EF", strconv.FormatFloat(a.earlyFinish, 'f', 2, 64)}, + {"LS", strconv.FormatFloat(a.lateStart, 'f', 2, 64)}, + {"LF", strconv.FormatFloat(a.lateFinish, 'f', 2, 64)}, + {"SLACK", strconv.FormatFloat(a.slack, 'f', 2, 64)}, } }