Número truncado
O truncamento reduz a precisão para zero e não aplica regras de arredondamento ou empate.
Calculadora de arredondamento
Insira um número e escolha suas preferências de arredondamento
|
🪄 Exemplos rápidos
📋 How It Works
Como funciona
1
Step 1
Choose the place value or decimal precision to keep.
2
Step 2
Remove all digits beyond that position.
3
Step 3
Return the toward-zero result.
📊 Examples
Exemplos trabalhados
Examples show deterministic cut-off behavior for positive and negative inputs.
| Entrada | Alvo | Método | Resultado |
|---|---|---|---|
| 2.99 | Número inteiro mais próximo | Truncar (em direção a zero) | 2 |
| -2.99 | Número inteiro mais próximo | Truncar (em direção a zero) | -2 |
| 45.6789 | Centésimo mais próximo (2 dp) | Truncar (em direção a zero) | 45.67 |
Dicas
Erros Comuns
Avoid these frequent rounding errors when validating outputs.
- Calling truncate a nearest-value rounding method.
- Confusing truncate with floor for negatives.
- Using truncation where tie-aware rounding is required.
- Dropping expected output precision in display formatting.
❓ Perguntas frequentes
Perguntas frequentes
Is truncation the same as rounding?
No. Truncation removes digits without choosing the nearest value.
How is truncate different from floor?
Truncate goes toward zero, while floor goes toward negative infinity.
When should truncation be used?
Use truncation when exact cut-off behavior is required by your process.
Can truncation be applied to large place values?
Yes. It works for tens, hundreds, thousands, and other supported places.