ecksbee / telefacts

XBRL file storage, data types, and renderer.
Apache License 2.0
1 stars 0 forks source link

Cannot render rr_PortfolioTurnoverRate facts #88

Closed joshuanario closed 11 months ago

joshuanario commented 11 months ago

decimals=+4 value="1.02"

Exception has occurred: panic
"runtime error: slice bounds out of range [:6] with length 4"
Stack:
     3  0x0000000104474c6c in github.com/joshuanario/digits.highPrecisionTruncate
         at /Users/joshuanario/go/pkg/mod/github.com/joshuanario/digits@v0.5.0/helpers.go:65
     4  0x00000001044731c4 in github.com/joshuanario/digits.computeNonSigFigs
         at /Users/joshuanario/go/pkg/mod/github.com/joshuanario/digits@v0.5.0/compute.go:44
     5  0x000000010447426c in github.com/joshuanario/digits.New
         at /Users/joshuanario/go/pkg/mod/github.com/joshuanario/digits@v0.5.0/digits.go:32
     6  0x00000001044d8c70 in ecksbee.com/telefacts/pkg/renderables.renderNumeric
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/fact.go:74
     7  0x00000001044d8920 in ecksbee.com/telefacts/pkg/renderables.SigFigs
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/fact.go:60
     8  0x00000001044d6838 in ecksbee.com/telefacts/pkg/renderables.renderEnglishFact
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/english.go:56
     9  0x00000001044d7d58 in ecksbee.com/telefacts/pkg/renderables.render
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/fact.go:46
    10  0x00000001044d9314 in ecksbee.com/telefacts/pkg/renderables.getFactualQuadrant
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/factualQuadrant.go:44
    11  0x00000001044d35d4 in ecksbee.com/telefacts/pkg/renderables.injectFactualQuadrant
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/effectiveDomainGrid.go:224
    12  0x00000001044d224c in ecksbee.com/telefacts/pkg/renderables.getRootDomains
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/effectiveDomainGrid.go:149
    13  0x00000001044cf96c in ecksbee.com/telefacts/pkg/renderables.dGrid
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/definitionGrid.go:14
    14  0x00000001044e58d0 in ecksbee.com/telefacts/pkg/renderables.MarshalRenderable.func2
         at /Users/joshuanario/go/pkg/mod/github.com/ecksbee/telefacts@v0.0.0-20231113/pkg/renderables/renderable.go:67