Scala-native: Implement conversions between numeric primitives and `java.lang.String`

Created on 7 Jun 2016  路  7Comments  路  Source: scala-native/scala-native

Due to incomplete java.lang.String support in the past we could not properly implement toString and parse methods for numeric types: java.lang.{Byte, Short, Int, Long, Float, Double}. Those can be easily ported over from Apache Harmony, especially considering that we use similar implementation of strings.

  • [x] java.lang.Byte
  • [x] java.lang.Short
  • [x] java.lang.Integer
  • [x] java.lang.Long
  • [x] java.lang.Float
  • [x] java.lang.Double
javalib good first issue

Most helpful comment

@densh OKay, I'll do this!

All 7 comments

@t-hiroyoshi Would you be interested in having a look at this one? Should be quite related to your previous work on java.lang.String.

@densh OKay, I'll do this!

@t-hiroyoshi Cool, thanks!

@t-hiroyoshi It looks like you're mostly done with support for integer types. Can you open pr for that part?

First half of the work has been merged in https://github.com/scala-native/scala-native/pull/238. We're only missing floating point types now.

I've moved out unsigned string conversions into separate issue https://github.com/scala-native/scala-native/issues/242 as those are not as critical.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

densh picture densh  路  3Comments

rwhaling picture rwhaling  路  5Comments

mkotsbak picture mkotsbak  路  4Comments

muxanick picture muxanick  路  6Comments

LukasKellenberger picture LukasKellenberger  路  3Comments