fix(swaptrade): 修复平仓比例显示精度问题
- 调整平仓比例显示精度为4位小数 - 修改掉期利率输入格式配置,设置精度为4并保留尾随零 - 确保数值显示的一致性和准确性
This commit is contained in:
@@ -714,7 +714,7 @@
|
||||
else
|
||||
{
|
||||
<td class="tdRight">平仓比例</td>
|
||||
<td class="color-bule">@(tc.ClosePercent.OtcFormatPercent())</td>
|
||||
<td class="color-bule">@(tc.ClosePercent.OtcFormatPercent(4))</td>
|
||||
<td class="tdRight">平仓名义本金</td>
|
||||
<td class="color-bule">@(tc.CloseNotionalValue.OtcFormat(OtcFormatFlag.StockEqvNotional))</td>
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//otcformat禁止千分位分组
|
||||
window.otcformat.options.disableGrouping = true;
|
||||
|
||||
const inputFormatSwapRate = Object.freeze({ precision: otcformat.trading.premiumRateP.precision, append: '%' });
|
||||
const inputFormatSwapRate = Object.freeze({ precision: 4, append: '%', trimTailZeros: false });
|
||||
const inputFormatTradePrice = Object.freeze({ precision: otcformat.trading.tradePrice.precision, append: '' });
|
||||
const inputFormatTradeAmount = Object.freeze({ precision: otcformat.trading.notional.precision, append: '' });
|
||||
const inputFormatEqvNotional = Object.freeze({ precision: 2, append: '', negative: true, trimTailZeros: false });
|
||||
|
||||
Reference in New Issue
Block a user