取消
显示结果 
搜索替代 
您的意思是: 

Configuring fixed point data

I'm trying to set the range on a fixed point indicator by adjusting the number of bits on integer word length but the max range that I want to use is not among the options. For example I want to set it 85,600 max but the closest options to this number are 65535 and 131071.  Is this even possible?

0 项奖励
1 条消息(共 3 条)
2,358 次查看

Hi

 

You can edit the max and min limits in the tab 'Data entry', a I32 representation will be enough to set a Max of 85,600.

0 项奖励
2 条消息(共 3 条)
2,333 次查看

Bits are binary, therefore the numbers you get are always going to be 2 raised to some power, minus one, which is what 65535 and 131071 are.

 

If you're using a control instead of an indicator you can set the min and max allowed values that can be input via user action... is that what you want?  Because there's no way to create a numeric data type that caps out internally at a value not related to a power of 2.

0 项奖励
3 条消息(共 3 条)
2,322 次查看