cast Long to BigDecimal July 28, 2023 by Tarik You’ll have to create a new BigDecimal. BigDecimal d = new BigDecimal(long);