Skip to main content
Glama

Controtto

by contre95
parsePrice.go456 B
package ui import ( "fmt" "strings" ) func DisplayPrice(v float64) string { s := fmt.Sprintf("%.2f", v) n := len(s) if n <= 6 { // e.g. 999.99 return s } // Insert commas for thousands parts := strings.Split(s, ".") intPart := parts[0] decPart := parts[1] var out []byte for i, c := range intPart { if i != 0 && (len(intPart)-i)%3 == 0 { out = append(out, ',') } out = append(out, byte(c)) } return string(out) + "." + decPart }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/contre95/controtto'

If you have feedback or need assistance with the MCP directory API, please join our Discord server