how to get rid of very small unintentional number?

Started by MrFesli on

Topic category: Help with modding (Java Edition)

Last seen on 15:19, 16. Aug 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to get rid of very small unintentional number?

For some reason when i add or remove numbers less than 1 but bigger than 0 from variable then write it very soon it becomes 0.500000000000001 or 1.50000000000004 and i don't know how to get rid of it and write number like 1.1, 1.5, 0.5, 2. soo how to do it?

Last seen on 15:19, 16. Aug 2023
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh and yeah i have diffrent…
Fri, 08/20/2021 - 16:53

oh and yeah i have diffrent time table so don't expect me to reply soon on your reply.