Bug 65450 - Reminder is returned as float while using javascript function
Summary: Reminder is returned as float while using javascript function
Status: NEEDINFO
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.4.1
Hardware: PC All
: P2 minor (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-14 17:27 UTC by vishnu
Modified: 2021-08-23 10:17 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vishnu 2021-07-14 17:27:07 UTC
Finding reminder using the __javascript function returns a float when expected an integer. This happens only when the reminder is 0
ex: _javascript(20%2) gives output as '0.0'

This was not there in the previous versions.
as a workaround we can use the toFixed(0) function.
Comment 1 Felix Schumacher 2021-08-23 10:17:54 UTC
Which version do you mean with "previous versions" exactly?
Comment 2 The ASF infrastructure team 2022-09-24 20:38:22 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5558