summaryrefslogtreecommitdiff
path: root/sources/scala/runtime/compat/Platform.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scala/runtime/compat/Platform.scala')
-rw-r--r--sources/scala/runtime/compat/Platform.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scala/runtime/compat/Platform.scala b/sources/scala/runtime/compat/Platform.scala
index d0fa630f8f..05a6f8e21e 100644
--- a/sources/scala/runtime/compat/Platform.scala
+++ b/sources/scala/runtime/compat/Platform.scala
@@ -19,4 +19,6 @@ object Platform {
def split(str: String, separator: Char): Array[String] = {
str.split(separator.toString());
}
+ def parseFloat(s: String): Float = java.lang.Float.parseFloat(s);
+ def parseDouble(s: String): Double = java.lang.Double.parseDouble(s);
}