You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Pavel Tupitsyn (Jira)" <ji...@apache.org> on 2024/03/13 08:56:00 UTC
[jira] [Updated] (IGNITE-21743) .NET: LINQ: Cast to decimal loses precision
[ https://issues.apache.org/jira/browse/IGNITE-21743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Tupitsyn updated IGNITE-21743:
------------------------------------
Description:
{code}
else if ((Nullable.GetUnderlyingType(expression.Type) ?? expression.Type) == typeof(decimal))
{
// Use max precision and scale when performing cast to achieve expected behavior.
// Otherwise, zero scale leads to rounding.
ResultBuilder.Append(" as decimal(20, 10))");
}
{code}
> .NET: LINQ: Cast to decimal loses precision
> -------------------------------------------
>
> Key: IGNITE-21743
> URL: https://issues.apache.org/jira/browse/IGNITE-21743
> Project: Ignite
> Issue Type: Bug
> Components: platforms, thin client
> Affects Versions: 3.0.0-beta1
> Reporter: Pavel Tupitsyn
> Priority: Major
> Labels: .NET, LINQ, ignite-3
> Fix For: 3.0.0-beta2
>
>
> {code}
> else if ((Nullable.GetUnderlyingType(expression.Type) ?? expression.Type) == typeof(decimal))
> {
> // Use max precision and scale when performing cast to achieve expected behavior.
> // Otherwise, zero scale leads to rounding.
> ResultBuilder.Append(" as decimal(20, 10))");
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)