﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 6  » Decimal separator inconsistency</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 30 May 2026 21:03:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Decimal separator inconsistency</title><link>https://forums.millisecond.com/Topic32458.aspx</link><description>I'm running a script in which I compute some variables in Inquisit for analysis, and some participants have completed my experiment online, but I'm seeing a few strange things. &lt;br/&gt;&lt;br/&gt;The first is what looks like floating point errors: the variables I compute (which are mainly averages of whole numbers) have values like&amp;nbsp;0.6500000000000000222 coming out of 13 divided by 20. Annoying, but nothing I can't solve by rounding them off, though it would be nice if I could tell Inquisit to use only 2 decimals for all of my 34 analysis variables.&lt;br/&gt;&lt;br/&gt;The second is that the decimal separators are sometimes periods and sometimes commas. I'm in the Netherlands, which uses comma separators, but my non-European participants seem to have their data entered with period separators. Does Inquisit record data using the settings of the computer it's running on, rather than the computer that created the script? This is a lot harder to fix, and I don't know how I can get the data to be saved with only comma separators.&lt;br/&gt;&lt;br/&gt;I attached the data file in question.&lt;br/&gt;</description><pubDate>Fri, 12 Nov 2021 18:31:58 GMT</pubDate><dc:creator>LTK</dc:creator></item><item><title>RE: Decimal separator inconsistency</title><link>https://forums.millisecond.com/Topic32459.aspx</link><description>&lt;blockquote data-id="32458" class="if-quote-wrapper" unselectable="on" data-guid="1636741504667" id="if_insertedNode_1636741503306" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="32458" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="32458" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="32458" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;LTK - 11/12/2021&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-32458"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;I'm running a script in which I compute some variables in Inquisit for analysis, and some participants have completed my experiment online, but I'm seeing a few strange things. &lt;br/&gt;&lt;br/&gt;The first is what looks like floating point errors: the variables I compute (which are mainly averages of whole numbers) have values like&amp;nbsp;0.6500000000000000222 coming out of 13 divided by 20. Annoying, but nothing I can't solve by rounding them off, though it would be nice if I could tell Inquisit to use only 2 decimals for all of my 34 analysis variables.&lt;br/&gt;&lt;br/&gt;The second is that the decimal separators are sometimes periods and sometimes commas. I'm in the Netherlands, which uses comma separators, but my non-European participants seem to have their data entered with period separators. Does Inquisit record data using the settings of the computer it's running on, rather than the computer that created the script? This is a lot harder to fix, and I don't know how I can get the data to be saved with only comma separators.&lt;br/&gt;&lt;br/&gt;I attached the data file in question.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="32458"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;&amp;gt;&amp;nbsp; The first is what looks like floating point errors: the variables I compute (which are mainly averages of whole numbers) have values like 0.6500000000000000222 coming out of 13 divided by 20. Annoying, but nothing I can't solve by rounding them off, though it would be nice if I could tell Inquisit to use only 2 decimals for all of my 34 analysis variables.&lt;br/&gt;&lt;br/&gt;You could have use the format() function. &lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/expressions/functions.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/expressions/functions.htm&lt;/a&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v6/html/language/functions/format.htm"&gt;https://www.millisecond.com/support/docs/v6/html/language/functions/format.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&amp;gt; Does Inquisit record data using the settings of the computer it's running on, rather than the computer that created the script.&lt;br/&gt;&lt;br/&gt;Yes.&lt;br/&gt;&lt;br/&gt;&amp;gt; This is a lot harder to fix, and I don't know how I can get the data to be saved with only comma separators.&lt;br/&gt;&lt;br/&gt;This strikes me as a simple search and replace operation.</description><pubDate>Fri, 12 Nov 2021 18:31:58 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>