File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -157,9 +157,13 @@ public string ToDenominated(int nrOfDecimals)
157157 start = start < 0 ? 0 : start ;
158158
159159 var decimals = padded . Substring ( start , Esdt . DecimalPrecision < nrOfDecimals ? Esdt . DecimalPrecision : nrOfDecimals ) ;
160+ decimals = decimals . TrimEnd ( '0' ) ;
160161 var integer = start == 0 ? "0" : padded . Substring ( 0 , start ) ;
161162
162- return $ "{ integer } .{ decimals } ";
163+ if ( string . IsNullOrEmpty ( decimals ) )
164+ return integer ;
165+ else
166+ return $ "{ integer } .{ decimals } ";
163167 }
164168
165169 /// <summary>
Original file line number Diff line number Diff line change 1111 <RepositoryUrl >https://github.com/RemarkableTools/Mx.NET.SDK/tree/main/src/Mx.NET.SDK.Core</RepositoryUrl >
1212 <RepositoryType >GitHub</RepositoryType >
1313 <Company >Remarkable Tools</Company >
14- <Version >1.0.7 </Version >
14+ <Version >1.0.8 </Version >
1515 <AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
1616 <Title >RemarkableTools.Mx.Core</Title >
1717 <PackageReadmeFile >README.md</PackageReadmeFile >
You can’t perform that action at this time.
0 commit comments