Skip to content
Sections
>> Trisquel >> 套件 >> etiona >> perl >> libmath-nocarry-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 原始碼: libmath-nocarry-perl  ]

套件: libmath-nocarry-perl (1.111-1)

Perl module for no carry arithmetic

The perl module Math::NoCarry implememnts no carry arithmetic which doesn't allow you to carry digits to the next column. For example, if you add 8 and 4, you normally expect the answer to be 12, but that 1 digit is a carry. In no carry arithmetic you can't do that, so the sum of 8 and 4 is just 2. In effect, this is addition modulo 10 in each column. The following example discards all of the carry digits:

 1234
 + 5678
 ------
 6802

For multiplication, the result of pair-wise multiplication of digits is the modulo 10 value of their normal, everyday multiplication.

其他與 libmath-nocarry-perl 有關的套件

  • 依賴
  • 推薦
  • 建議
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下載 libmath-nocarry-perl

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 7.9 kB23 kB [文件列表]