aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/NumberParser.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/NumberParser.hxx b/src/util/NumberParser.hxx
index df55bb7ff..b4efdeaae 100644
--- a/src/util/NumberParser.hxx
+++ b/src/util/NumberParser.hxx
@@ -75,4 +75,10 @@ ParseDouble(const char *p, char **endptr=nullptr)
return (double)strtod(p, endptr);
}
+static inline float
+ParseFloat(const char *p, char **endptr=nullptr)
+{
+ return (float)ParseDouble(p, endptr);
+}
+
#endif