Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android studio reg get float from numeric string

float f = Float.valueOf("25.5sp.".replaceAll("[^d.]+|.(?!d)", ""));
// f = 25.5
 
PREVIOUS NEXT
Tagged: #android #studio #reg #float #numeric #string
ADD COMMENT
Topic
Name
7+6 =