Skip to content

base-speed is rounded down to integer — float values below 1 treated like 0 #1

@FilipKulisiewicz

Description

@FilipKulisiewicz

Summary

When setting base-speed to a float value less than 1 (like in case of the "child" agents), the model behaves as if the speed is 0 — agents do not move. However, when base-speed is set to 1.0 or higher, agents start moving as expected. This suggests that base-speed is effectively rounded down or treated as an integer internally, even though it accepts float input.

Steps to Reproduce

  1. Set base-speed to 0.001, and 0.9999
  2. Observe agent movement — no movement occurs
  3. Set base-speed to 1.0
  4. Agents begin to move

Expected Behavior

Agents should move slowly when base-speed is set to a small positive float. There should be a noticeable difference between 0.001 and 0.9999, and both should result in slow but non-zero movement.

Actual Behavior

Any base-speed value below 1.0 results in no movement, making float values between 0 and 1 behave identically to 0.

Environment

  • NetLogo version: 6.4.0
  • Platform: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions