GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Numbers by diogoosz · Pull Request #478 · javascript-tutorial/pt.javascript.info

Conversation

@diogoosz

@diogoosz 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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
diogoosz and others added 3 commits November 8, 2026 19:41
@diogoosz @claude
Translate "Numbers" article to Portuguese
184c6ee
Co-Authored-By: Claude Sonnet 5 <[email protected]>
@diogoosz @claude
Fix broken IEEE-754 pt.wikipedia link (page doesn't exist)
f658ccc
Co-Authored-By: Claude Sonnet 5 <[email protected]>
@diogoosz @claude
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 <[email protected]>
gabifs
gabifs reviewed Nov 12, 2026
View reviewed changes
Comment thread 1-js/05-data-types/02-number/article.md
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)

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separador decimal misturado: o comentário diz 7,3 bilhões logo ao lado do código 7.3e9 (e a linha 27 usa "7,3bi"), enquanto o resto do artigo usa ponto (12.34, 0.1). Um iniciante pode achar que 7,3 é um literal válido em JS (na verdade, é o operador vírgula e resulta em 3). Sugiro manter 7.3 como no original.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/05-data-types/02-number/article.md
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.

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Terminologia inconsistente: aqui (e nas linhas 157 e 172) está "depois da vírgula", mas as linhas 68, 143, 197 e 263 usam "ponto decimal". Como os exemplos são 1.2345/1.23456, onde o separador é um ponto, "vírgula" confunde. Sugiro padronizar com "ponto decimal".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/05-data-types/02-number/article.md
Agora vamos escrever algo bem pequeno. Digamos, 1 microssegundo (um milionésimo de segundo):

```js
let mсs = 0.000001;

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pré-existente no original, mas está dentro do hunk: mсs usa o с cirílico (U+0441), e a linha 53 usa mcs latino. Quem copiar os dois trechos fica com dois identificadores diferentes. Sugiro trocar pelo c latino.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/05-data-types/02-number/article.md

```js
let mcs = 1e-6; // five zeroes to the left from 1
let mcs = 1e-6; // cinco zeros à esquerda do 1

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O comentário "cinco zeros à esquerda do 1" contradiz a linha 55 ("há 6 deles"), e 0.000001 tem seis zeros. Já estava assim no original, mas dá para corrigir na tradução: "seis zeros à esquerda do 1".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/05-data-types/02-number/article.md
```js run
alert( 0xff ); // 255
alert( 0xFF ); // 255 (the same, case doesn't matter)
alert( 0xFF ); // 255 (o mesmo, a caixa não importa)

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a caixa não importa" é jargão tipográfico e fica obscuro para iniciantes. Sugiro: "o mesmo, maiúsculas ou minúsculas não importam".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/05-data-types/02-number/1-sum-interface/solution.md
```

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.

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"mais unário" (aqui e nas linhas 193 e 388 do article.md) não bate com o termo do capítulo de operadores (1-js/02-first-steps/08-operators/article.md:128,132: "+ unário" / "positivo unário"). Vale padronizar para que o leitor reconheça o mesmo conceito.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread 1-js/05-data-types/02-number/3-repeat-until-number/_js.view/test.js
describe("readNumber", function() {

it("if a number, returns it", function() {
it("se for um número, retorna ele", function() {

@gabifs gabifs Nov 12, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"retorna ele" (aqui e na linha 16) usa o pronome reto como objeto, o que é coloquial e foge da norma. Sugiro "retorna o número" / "retorna 0" (ou "retorna-o").

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gabifs gabifs mentioned this pull request Nov 12, 2026
Portuguese Translation Progress #1
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@gabifs gabifs gabifs left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@diogoosz @gabifs
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.