Repair a verified behavior in chipsalliance/chisel.
Repair a verified behavior in chipsalliance/chisel.: a task in OriGent-SFT-Data (Harbor dataset). Num.toBigInt(x: BigDecimal, binaryPoint: Int) does not round positive fractional BigDecimal values correctly. For example, converting BigDecimal(1.6) with binaryPoint 0 currently returns 1 instead of…
The task
Num.toBigInt(x: BigDecimal, binaryPoint: Int) does not round positive fractional BigDecimal values correctly. For example, converting BigDecimal(1.6) with binaryPoint 0 currently returns 1 instead of 2, while Num.toBigInt(1.6, 0) returns 2. The BigDecimal overload should therefore round a positive scaled result with…
Part of henryen/OriGent-SFT-Data.