主要内容

fi对象显示偏好使用fipref

您使用fipref对象指定显示的三个方面fi对象:对象的值,当地fimath属性,numerictype属性。

例如,下面的代码显示了默认的fipref显示为fi对象与当地fimath对象:

一个= fi(π,“RoundingMethod”,“地板”,“OverflowAction”,“包装”)
= 3.1415 DataTypeMode:定点:二进制扩展Signedness:签了字:16 FractionLength: 13 RoundingMethod:地板OverflowAction:包装ProductMode: FullPrecision SumMode: FullPrecision

默认的fipref显示为fi对象没有当地fimath如下:

一个= fi(π)
= 3.1416 DataTypeMode:定点:二进制扩展Signedness:签了字:16 FractionLength: 13

接下来,更改fipref显示属性:

P = fipref;P。NumberDisplay =“本”;P。NumericTypeDisplay =“短”;P。FimathDisplay =“没有”
P = NumberDisplay:‘本’NumericTypeDisplay:“短”FimathDisplay:“没有一个”LoggingMode:‘Off’DataTypeOverride:“ForceOff”
一个
一个= 0110010010001000 numerictype(13) 1日16日