- 精华
- 0
- 帖子
- 13055
- 威望
- 0 点
- 积分
- 13859 点
- 种子
- 978 点
- 注册时间
- 2005-2-3
- 最后登录
- 2025-2-12
|
发表于 2022-6-10 02:57 · 荷兰
|
显示全部楼层
本帖最后由 feibu 于 2022-6-9 20:59 编辑
Decimal并不是float啊,是由4个32位的int代替的
这里是源代码
// The lo, mid, hi, and flags fields contain the representation of the
// Decimal value. The lo, mid, and hi fields contain the 96-bit integer
// part of the Decimal. Bits 0-15 (the lower word) of the flags field are
// unused and must be zero; bits 16-23 contain must contain a value between
// 0 and 28, indicating the power of 10 to divide the 96-bit integer part
// by to produce the Decimal value; bits 24-30 are unused and must be zero;
// and finally bit 31 indicates the sign of the Decimal value, 0 meaning
// positive and 1 meaning negative.
//
// NOTE: Do not change the order in which these fields are declared. The
// native methods in this class rely on this particular order.
private int flags;
private int hi;
private int lo;
private int mid;
|
|