Skip to content

Commit

Permalink
Precision
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiusgreat committed Feb 17, 2024
1 parent 526ce79 commit 680d502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Canvas.Core/Canvas.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.9.6</Version>
<Version>1.9.7</Version>
<Description>Internal package used in Canvas.Views.Web</Description>
<Authors>artemiusgreat</Authors>
<Copyright>indemos.com</Copyright>
Expand Down
4 changes: 2 additions & 2 deletions Canvas.Core/Composers/Composer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@ protected virtual IList<MarkerModel> GetIndices()
{
var minIndex = Domain.MinIndex;
var maxIndex = Domain.MaxIndex;
var center = Math.Round(minIndex + (maxIndex - minIndex) / 2.0, MidpointRounding.ToZero);
var step = Math.Round((0.0 + maxIndex - minIndex) / IndexCount, MidpointRounding.ToZero);
var center = Math.Round(minIndex + (maxIndex - minIndex) / 2.0, MidpointRounding.ToEven);
var step = Math.Round((0.0 + maxIndex - minIndex) / IndexCount, MidpointRounding.ToEven);
var items = new List<MarkerModel>();

void createItem(double i)
Expand Down
2 changes: 1 addition & 1 deletion Canvas.Views.Web/Canvas.Views.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>1.9.6</Version>
<Version>1.9.7</Version>
<PackageTags>finance chart opengl canvas trading gdi stock direct2d</PackageTags>
<Authors>artemiusgreat</Authors>
<Copyright>indemos.com</Copyright>
Expand Down

0 comments on commit 680d502

Please sign in to comment.