• Fixdt

    From ayush khemkar@21:1/5 to All on Fri Aug 11 02:43:47 2023
    Hello,

    When I declare a variable in .m file like
    x=fi(14.3,0,8,0.025,11.7)
    Now when I use this variable in simulink model it shows like below 14.299999999999998934
    This value is not show in display block or scope but it will show when we check value in constant block in simulink(by clicking 3 dot -> x(Base Workspace)->Open
    I am using x as constant block in simulink and Output data type as
    Inherit: Inherit from 'Constant value'
    I have to use this fixed scaling configuration only fixdt (0,8,0.025,11.7)
    But as 14.3 is in multiple of 0.025 I think we should get 14.3 only
    This value 14.299.... also shows when we test is TPT (time partition testing) How can we solve this issue?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)