def myRound(a: Double): String ={
f"$a%1.2f"
}
Formatting decimals in scala
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=324948366&siteId=291194637
Recommended
Ranking