node: implement float literals

This commit is contained in:
mappu 2020-04-15 19:06:28 +12:00
parent 9253058a73
commit 979049ae42
1 changed files with 5 additions and 0 deletions

View File

@ -1585,6 +1585,11 @@ func (this *conversionState) convertNoFreeFloating(n_ node.Node) (string, error)
//
case *scalar.Lnumber:
// Integer (maybe with 0b / 0x / '0' prefix)
return n.Value, nil // number formats are compatible
case *scalar.Dnumber:
// Float (maybe with period / scientific notation)
return n.Value, nil // number formats are compatible
case *scalar.String: