Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
Android - Custom currency symbol

I need a way to display custom currency symbol. I'm using NumberFormat and I can't find a way to replace the currency symbol as it all depends on the locale. the symbol I want to use for currency is a specific symbol for the app I'm working on. any ideas? 🤞

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can put symbols directly into your format pattern and surround them with apostrophes (just in case they are a pattern symbol) instead of using the currency symbol notation.

fun main() {
    val input = 5.47
    val symbol = '\u263a'
    val result = DecimalFormat("'$symbol'#.##").format(input)
    println(result)
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!