Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kmfrank committed Nov 7, 2024
1 parent 735bfe9 commit c9092b9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cpp/expressionsLib/src/ExprValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,9 +430,14 @@ namespace OscExpression
else if (IsTypeNumeric())
{
double doubleValue = getDoubleValue();
//if (doubleValue == std::ceil(doubleValue))
if (doubleValue == std::ceil(doubleValue))
{
long long unambiguousValue = (long long)doubleValue;
std::string longStringValue = std::to_string(unambiguousValue);
convertedType = CreateStringValue(longStringValue);
}
else
{
//long long unambiguousValue = (long long)doubleValue;
std::string longStringValue = std::to_string(doubleValue);
convertedType = CreateStringValue(longStringValue);
}
Expand Down

0 comments on commit c9092b9

Please sign in to comment.