Skip to content

Commit

Permalink
Fix trailing '.0' for Int64 values (actions#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple authored Jun 30, 2020
1 parent a0942ed commit 121deed
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public override JToken ToJToken()
var floored = Math.Floor(m_value);
if (m_value == floored && m_value <= (Double)Int32.MaxValue && m_value >= (Double)Int32.MinValue)
{
Int32 flooredInt = (Int32)floored;
var flooredInt = (Int32)floored;
return (JToken)flooredInt;
}
else if (m_value == floored && m_value <= (Double)Int64.MaxValue && m_value >= (Double)Int64.MinValue)
{
var flooredInt = (Int64)floored;
return (JToken)flooredInt;
}
else
Expand Down

0 comments on commit 121deed

Please sign in to comment.