← Winnitude! Search  ·  Reader Mode (1495 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 42 LINKS

Numbers by diogoosz · Pull Request #478 · javascript-tutorial/pt.javascript.info

Repository navigation

Numbers - #478


Merged
gabifs merged 4 commits into javascript-tutorial:master from diogoosz:translate-numbers Nov 21, 2026
Merged

Numbers #478 gabifs merged 4 commits into javascript-tutorial:master from diogoosz:translate-numbers

Conversation

diogoosz commented Nov 8, 2026



Copy link Copy Markdown
Contributor

Tradução do artigo "Numbers" para o português, incluindo os exercícios.

Conforme comentado na #1 .

diogoosz and others added 3 commits November 8, 2026 19:41 Translate "Numbers" article to Portuguese 184c6ee
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Fix broken IEEE-754 pt.wikipedia link (page doesn't exist) f658ccc
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Remove Arrays translation files accidentally included on this branch 38ebf01
These belong on a separate branch (translate-arrays), not here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
gabifs reviewed Nov 12, 2026
View reviewed changes
Comment thread 1-js/05-data-types/02-number/article.md
Outdated
let billion = 1e9; // 1 bilhão, literalmente : 1 e 9 zeros

alert( 7.3e9 ); // 7 .3 billions (same as 7300000000 or 7_300_000_000)
alert( 7.3e9 ); // 7 ,3 bilhões (o mesmo que 7300000000 ou 7_300_000_000)
Comment thread 1-js/05-data-types/02-number/article.md
Outdated
1. Multiplicar e dividir .

For example, to round the number to the 2nd digit after the decimal, we can multiply the number by `100`, call the rounding function and then divide it back .
Por exemplo, para arredondar o número até o 2º dígito depois da vírgula, podemos multiplicar o número por `100`, chamar a função de arredondamento e depois dividir de volta .
Comment thread 1-js/05-data-types/02-number/article.md
Outdated
Agora vamos escrever algo bem pequeno. Digamos , 1 microssegundo (um milionésimo de segundo ):

```js
let mсs = 0.000001;
Comment thread 1-js/05-data-types/02-number/article.md
Outdated

```js
let mcs = 1e-6; // five zeroes to the left from 1
let mcs = 1e-6; // cinco zeros à esquerda do 1
Comment thread 1-js/05-data-types/02-number/article.md
Outdated
```js run
alert( 0xff ); // 255
alert( 0xFF ); // 255 ( the same, case doesn't matter )
alert( 0xFF ); // 255 ( o mesmo, a caixa não importa )
Comment thread 1-js/05-data-types/02-number/1-sum-interface/solution.md
Outdated
```

Note the unary plus `+` before `prompt`. It immediately converts the value to a number .
Observe o mais unário `+` antes de `prompt`. Ele converte o valor para um número imediatamente .
Comment thread 1-js/05-data-types/02-number/3-repeat-until-number/_js.view/test.js
Outdated
describe("readNumber", function() {

it(" if a number, returns it ", function() {
it(" se for um número, retorna ele ", function() {
gabifs mentioned this pull request Nov 12, 2026 Portuguese Translation Progress #1 Open Apply review feedback from @gabifs a241a5d
- Fix decimal separator mixed with comma: "7,3bi"/"7,3 bilhões" ->
  "7.3bi"/"7.3 bilhões", matching the dot notation used everywhere
  else in the article
- Fix Cyrillic "с" (U+0441) in `mсs` -> Latin "c", matching the
  identifier used on the next line
- Fix wrong count: "cinco zeros à esquerda do 1" contradicted "há 6
  deles" right below it (0.000001 has six zeros) -> "seis zeros"
- "a caixa não importa" -> "maiúsculas ou minúsculas não importam"
  (obscure typography jargon)
- Standardize "depois da vírgula" -> "depois do ponto decimal",
  matching the rest of the article (the examples use a dot)
- Standardize "mais unário" -> "positivo unário", matching the term
  used in 02-first-steps/08-operators (4 occurrences)
- Fix straight-pronoun-as-object: "retorna ele" -> "retorna o
  número" / "retorna 0"

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

diogoosz commented Nov 21, 2026



Copy link Copy Markdown
Contributor

Author

Obrigado, @gabifs ! Apliquei tudo: separador decimal "7,3bi"→"7.3bi" (vírgula misturada com ponto), o с cirílico→c latino, "cinco zeros"→"seis zeros" (contradição corrigida), "a caixa não importa"→"maiúsculas ou minúsculas não importam", "depois da vírgula"→"depois do ponto decimal" em todo o artigo, "mais unário"→"positivo unário" (consistente com 08-operators), e "retorna ele"→"retorna o número"/"retorna 0".

gabifs merged commit 0b7e853 into javascript-tutorial : master Nov 21, 2026 1 check passed Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

2 participants