Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFixing #20 Translating tutorial/floatingpoint #25
Conversation
數學標示部份不是很確定。rST 半形還是全形請協助校對,感謝。
非常感謝你的幫忙! |
|
||
#: ../../tutorial/floatingpoint.rst:14 | ||
msgid "" | ||
"Floating-point numbers are represented in computer hardware as base 2 " | ||
"(binary) fractions. For example, the decimal fraction ::" | ||
msgstr "" | ||
"浮點數,在電腦以基數為 2(binary)分數來表示。舉例說明,在十進位分數:\n" |
|
||
#: ../../tutorial/floatingpoint.rst:14 | ||
msgid "" | ||
"Floating-point numbers are represented in computer hardware as base 2 " | ||
"(binary) fractions. For example, the decimal fraction ::" | ||
msgstr "" | ||
"浮點數,在電腦以基數為 2(binary)分數來表示。舉例說明,在十進位分數:\n" | ||
"::" |
adrianliaw
Jul 24, 2018
Collaborator
依照 rST 語法的規則 [1],這兩個冒號應該要寫成
十進位分數:
::
或是
十進位分數: ::
請注意前者的中間有一個空行,後者的全形冒號和兩個半形冒號之間有空格。不然 rST 會認不得,要再麻煩改掉後面所有同樣的情況了!
[1] http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#literal-blocks
|
||
#: ../../tutorial/floatingpoint.rst:19 | ||
msgid "" | ||
"has value 1/10 + 2/100 + 5/1000, and in the same way the binary fraction ::" | ||
msgstr "" | ||
"如 1/10 + 2/100 + 5/1000 以二進位分數方式表示為:\n" |
adrianliaw
Jul 24, 2018
Collaborator
請注意這幾個段落其實是一段話,中間夾雜一些程式碼(程式碼沒有在 po 檔裡),請參考原文 [2] 的先後順序,有助於讓產生出的中文翻譯語意上能把整個段落串起來
|
||
#: ../../tutorial/floatingpoint.rst:23 | ||
msgid "" | ||
"has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the " | ||
"only real difference being that the first is written in base 10 fractional " | ||
"notation, and the second in base 2." | ||
msgstr "" | ||
"0/2 + 0/4 + 1/8。 這兩種分數具有相同數值,唯一差別為第一種標記法是十進位分" |
@@ -47,30 +54,36 @@ msgid "" | |||
"point numbers you enter are only approximated by the binary floating-point " | |||
"numbers actually stored in the machine." | |||
msgstr "" | |||
"不幸的是,大多數十進位轉換成二進位表示的分數,其數值並不完全相同。 最後常見" | |||
"的情況是,當您輸入十進位的浮點數值,計算機將轉換為近似的二進位浮點數值儲存。" |
|
||
#: ../../tutorial/floatingpoint.rst:37 ../../tutorial/floatingpoint.rst:41 | ||
msgid "or, better, ::" | ||
msgstr "" | ||
msgstr "只能得到近似值:" |
@@ -81,6 +94,10 @@ msgid "" | |||
"fraction is ``3602879701896397 / 2 ** 55`` which is close to but not exactly " | |||
"equal to the true value of 1/10." | |||
msgstr "" | |||
"有限的位數中,只能得到近似數值。 現今機器上,浮點數是以二進位分數近似表示" | |||
"的,使用從 53 位開始的最高有效數(significant bit),分母為 2 的指數倍。 以" | |||
"數值 1/10 說明,二進制分數表示為 \" 3602879701896397 / 2 ** 55 \",其接近但不" |
adrianliaw
Jul 24, 2018
Collaborator
原文這邊的 ``3602879701896397 / 2 ** 55``
是一個 rST 的 inline literal 語法 [3],是用兩個 backtick ``
來表示,而不是一個 double-quote
[3] http://docutils.sourceforge.net/docs/user/rst/quickref.html#inline-markup
數學標示部份不是很確定。rST 半形還是全形請協助校對,感謝。