Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 847 Bytes

day25.md

File metadata and controls

24 lines (21 loc) · 847 Bytes

第二十五天

索引

python标准库 decimal

  1. basic 注意:Decimal中应该放的是字符串
a = 4.2
b = 2.1

a + b != 6.3

from decimal import Decimal
c = Decimal("4.2")
d = Decimal("2.1")
c + d == Decimal("6.3")
  1. localcontext 使用上下文表达式