Dubacik22.DisplayValue 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Dubacik22.DisplayValue --version 1.0.1                
NuGet\Install-Package Dubacik22.DisplayValue -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dubacik22.DisplayValue" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dubacik22.DisplayValue --version 1.0.1                
#r "nuget: Dubacik22.DisplayValue, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Dubacik22.DisplayValue as a Cake Addin
#addin nuget:?package=Dubacik22.DisplayValue&version=1.0.1

// Install Dubacik22.DisplayValue as a Cake Tool
#tool nuget:?package=Dubacik22.DisplayValue&version=1.0.1                

Library with something like double with exponent

it have properties: Vaue, DecPlaces and DispExp lets say that you want to store value that represents weight. and the value shoul be 128.432 exactly. lets say that this walue will have units. like "g". and you want to display this value in "kg", with just 2 decimal places. so you want to display 0.13 so you can store one DispValue like DispValu.Value=128.342, DispValue.DecPlaces=-1, DispValue.DispExp=3 so that means, you take your value, display it with desired decimal places (128.342 with -1 decimal place, is basically 130) and you shifts decimal point by 3 places to left. (130 will then be 0.13) you can get this representation with ToString() method the DispValue have allso another properties like: DisplayValue - this just shifts decimal places DisplayValueWDecPl - this just shifts decimal places and restricts decimal places (rounds) DisplayDecPlaces - when you wand to show 5 places and shift point by 3 places, result will be 2 (you will have jus 2 places in resulting value) methods that returns string: ToString() returns string that is represented by Value, DecPlaces and DispExp ToScientificString() returns same as ToString but when ToString returns 0.002, this method returns 2e-3 the DispValue have programmed its own arithmetic to manipulate with its properties (DecPlaces and DispExp): lets assume that you multiply one DispValue(1.1122, 2, 0) with another DispValue(1.1122, 2, 0) multiplication of 1.1122 * 1.1122 is 1.23698884 but multiplication of 1.11 * 1.11 is 1.2321 that means, that you probably want to have correct arithmetic result (1.23698884) but you want to display it with 4 decimal places (like 1.2321) same with division

in Parser namespace is Paser of DispValues for parsing srtings like 1 kg to DispValue(1000, -3, 3) with: Parser.Parse(string, IExponentFetcher) the IExponentFetcher is interface containing method int FetchExponent(string) that should return value that should be in DispExp in DispValue, from the string (in our example "kg")

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Dubacik22.DisplayValue:

Package Downloads
Dubacik22.Equationer

Library that can parse equations and recognize user functions and user variables

Dubacik22.Fielder

Library that contains classes that can be easily serialisable

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 178 5/13/2024
1.0.3 766 6/19/2023
1.0.2 381 5/15/2023
1.0.1 1,304 2/6/2022
1.0.0 939 2/5/2022