nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nitmetrics: add inheritance metrics computation
[nit.git]
/
src
/
literal.nit
diff --git
a/src/literal.nit
b/src/literal.nit
index
bdea381
..
5bb3f47
100644
(file)
--- a/
src/literal.nit
+++ b/
src/literal.nit
@@
-67,9
+67,7
@@
redef class AFloatExpr
var value: nullable Float
redef fun accept_literal(v)
do
- # FIXME: no method to_f on string so just go ugly
- var parts = self.n_float.text.split_with(".")
- self.value = parts.first.to_i.to_f
+ self.value = self.n_float.text.to_f
end
end