Every line of 'invalid decimal literal' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Go code is secure.
554 func (s *GruleParserListener) EnterDecimalLiteral(ctx *parser.DecimalLiteralContext) { 555 Logger.Tracef("Entering decimal literal '%s'", ctx.GetText()) 556 }
106 func (v *Basegrulev3Visitor) VisitFloatLiteral(ctx *FloatLiteralContext) interface{} { 107 return v.VisitChildren(ctx) 108 }
1605 func (s *ConstantContext) DECIMAL() antlr.TerminalNode { 1606 return s.GetToken(oncrpcv2ParserDECIMAL, 0) 1607 }
163 func (s *Scanner) isPositiveDecimal(ch rune) bool { 164 return '1' <= ch && ch <= '9' 165 }
69 func (s ValueSet) ParseDecimal(val uint64) string { 70 if v, ok := s[val]; ok { 71 return v 72 } 73 return fmt.Sprintf("%d", val) 74 }
398 func (d *jsonBinaryDecoder) decodeDecimal(data []byte) interface{} { 399 precision := int(data[0]) 400 scale := int(data[1]) 401 402 v, _, err := decodeDecimal(data[2:], precision, scale, d.useDecimal) 403 d.err = err 404 405 return v 406 }
37 func validateDecimal(schema *yang.Entry, value interface{}) error { 38 // Check that the schema itself is valid. 39 if err := validateDecimalSchema(schema); err != nil { 40 return err 41 } 42 43 // Check that type of value is the type expected from the schema. 44 f, ok := value.(float64) 45 if !ok { 46 return fmt.Errorf("non float64 type %T with value %v for schema %s", value, value, schema.Name) 47 } 48 49 if err := ValidateDecimalRestrictions(schema.Type, f); err != nil { 50 return fmt.Errorf("schema %q: %v", schema.Name, err) 51 } 52 53 return nil 54 }
615 func isDecimal(ch rune) bool { 616 return '0' <= ch && ch <= '9' 617 }
634 func (s *VertexContext) AllDECIMAL() []antlr.TerminalNode { 635 return s.GetTokens(WavefrontOBJParserDECIMAL) 636 }
8 func IsDecimal(b byte) bool { 9 return b >= '0' && b <= '9' 10 }