AngouriMath
Navigation
CreateWithoutDowncasting(PeterO.Numbers.EDecimal)
Method (no overloads)
Summary
A Real holding exactly value , never rounded onto an
Integer or a Rational, whatever
DowncastingEnabled says: what Create(PeterO.Numbers.EDecimal) answers
with the downcasting off, without opening a scope to turn it off.
Integer or a Rational, whatever
DowncastingEnabled says: what Create(PeterO.Numbers.EDecimal) answers
with the downcasting off, without opening a scope to turn it off.
Example
using System;
using AngouriMath;
using PeterO.Numbers;
var half = EDecimal.FromString("0.5");
Console.WriteLine(Entity.Number.Real.Create(half).GetType().Name);
Console.WriteLine(Entity.Number.Real.CreateWithoutDowncasting(half).GetType().Name);Prints
Rational
RealAngouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6003 pages online