#This is a (how do i) question

1 messages · Page 1 of 1 (latest)

trim jay
#

Multiply then round to int.

soft otter
trim jay
soft otter
#

It could be what Bucket Man said, but can you provide more example? and what are the dashes - for? Possibly explain how 1-0.9-0.8 becomes 9-8-7

misty ocean
#

sorry sorry

#

i want the distance to be lower and lower, as the number decrease it reaches to a certain number for the less and greater than and equal chips

#

@soft otter

trim jay
misty ocean
#

exactly

#

@trim jay

soft otter
#

Then why did you explain it like that?

trim jay
misty ocean
trim jay
soft otter
misty ocean
#

it goes like 0.5456545433455

soft otter
#

The Circuits can read that just fine?

trim jay
soft otter
#

You could just multiply by 10 if it’s bothers you that much

#

and round like bucket man said

trim jay
#

Do you want to convert the distance to something readable for a subtitle?

misty ocean
#

yes

trim jay
#

Keep in mind, computers can handle distances like 0.5462613 just fine.

misty ocean
#

or i just use round

trim jay
#

If you don't want decimals then sure.

#

But there's no point in rounding if you're just checking if the distance is less than a certain amount.

misty ocean
#

the thing is the float are hard beacuse i would have to modify the less or equal chip to a certain number like less than 0.192839283623

trim jay
#

No?

#

Why are you checking if a distance is less than 0.193849283623?

misty ocean
trim jay
#

You're fine to just check if a distance is less than 0.2, why are you trying to check if a distance is less than such a specific amount?

trim jay
misty ocean
#

Noted