S
S
Server Bear2021-01-01 13:24:01
Java
Server Bear, 2021-01-01 13:24:01

How to format Long?

There is a number Long(1223238448), you need to convert it to 1223238000, i.e. remove the last three digits without rounding the number

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Roo, 2021-01-01
@xez

Divide by 10, 100, 1000, etc.

B
BorLaze, 2021-01-01
@BorLaze

(n/1000)*1000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question