大负数 - 仅给予postivie的积极性

Jam*_*123 1 vb.net asp.net

我有temp2值-52340.0和hslColor.Luminosity是240.0

Dim temp1 As Double = (hslColor.Luminosity - temp2).它应该给出-ve数字,但我总是得到正数.

结果应该是-52100,但我得到+52100.怎么办呢?

Bra*_*ker 5

240 - (-52340)= 52580

你还记得如果减去负数会发生什么吗?