Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 134
    • Issues 134
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #531

Closed
Open
Created Aug 28, 2021 by drago 967@drago967

Add BigDouble Variable Type for Precision Math

Summary

I am asking Mythicmobs to count by 0.05 every second, and it is adding very tiny extra numbers onto 0.05.

Steps to reproduce

In mobs folder

  • skill{s=AddExtinguish;sync=true} @self ~onTimer:20

In skills folder

AddExtinguish:

Conditions:

  • variableInRange{var=Global.StartUp;value=>0}

Skills:

  • variableadd{var=global.extinguish;a=0.05}

Current behavior By using - message{m="<global.var.extinguish>"} @PIR{r=30} We can see the value of the variable. The count in chat goes like this: 0.05 0.1 0.15 0.2 0.25 0.3 0.35000002 0.40000004 0.45000005 0.50000006 0.5500001 0.6000001 0.6500001 0.7000001 etc. Picture: 2021-08-28__2_ Intended correct behavior

Should count without the strange extra numbers at the end

Server log file

https://mclo.gs/VLk8n6T

Edited Sep 24, 2021 by Ashijin
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking