MCPcopy Index your code
hub / github.com/TruthHun/BookStack / ScoreFloat

Function ScoreFloat

utils/util.go:128–130  ·  view source on GitHub ↗

评分处理

(score int)

Source from the content-addressed store, hash-verified

126
127// 评分处理
128func ScoreFloat(score int) string {
129 return fmt.Sprintf("%1.1f", float32(score)/10.0)
130}
131
132// @param conf 邮箱配置
133// @param subject 邮件主题

Callers 1

ToBookResultMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected