0 votes
33 views
ago in Software by Sugandh Pratap Singh (20 points)
Hi,
I am converting 50123.4 to boolean then boolean to floating point. I am getting 50123. It is removing fractional part.
I am first converting 50123.4 to 32 bits using boolean split then from 32 bits to decimal using boolean join.

suggest if any other login using which i can convert positive/ negative decimal number  (+/-50123.4) to boolean and back to +/- decimal number (+/-50123.4).

1 Answer

0 votes
ago by Jovan Zelic (815 points)
Hi,

Boolean split component documentation states that only the unsigned integer input is considered (https://www.typhoon-hil.com/documentation/typhoon-hil-software-manual/References/boolean_split.html#:~:text=Input(in),Vector%20support%3A%20yes.).

This means that component does the casting to uint internally. You can multiply the number by 10 if you want to see the decimal, and then divide by 10 afterwards.
Welcome to the Typhoon HIL user forum. Please check self-service support resources before posting a question.

HIL Specialist 2.0 courses
Documentation
Knowledgebase (Legacy)
Video support on demand
Youtube tutorials

For subscription-based support visit Typhoon HIL Support Center
...