MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / parseFloat

Function parseFloat

internal/files/files.go:502–508  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

500}
501
502func parseFloat(s string) float64 {
503 f, err := strconv.ParseFloat(s, 64)
504 if err != nil {
505 return 0
506 }
507 return f
508}
509
510func parseTime(s string) time.Time {
511 t, err := time.Parse(time.RFC3339, s)

Callers 1

parseExternalTransactionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected