mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-20 17:08:00 +02:00
Numeric ToString/Parse fixes
This commit is contained in:
parent
f1eca07510
commit
9ca48c26f2
4 changed files with 43 additions and 0 deletions
|
@ -174,6 +174,10 @@ namespace System
|
|||
{
|
||||
// Ignore
|
||||
}
|
||||
else if ((c == '+') && (i == 0))
|
||||
{
|
||||
// Ignore
|
||||
}
|
||||
else
|
||||
return .Err(.InvalidChar(result));
|
||||
}
|
||||
|
|
|
@ -151,6 +151,10 @@ namespace System
|
|||
{
|
||||
// Ignore
|
||||
}
|
||||
else if ((c == '+') && (i == 0))
|
||||
{
|
||||
// Ignore
|
||||
}
|
||||
else
|
||||
return .Err(.InvalidChar(result));
|
||||
}
|
||||
|
|
|
@ -159,6 +159,11 @@ namespace System
|
|||
return (int64)(((uint64)InternalSample() << 32) | (uint64)InternalSample());
|
||||
}
|
||||
|
||||
public virtual uint64 NextU64()
|
||||
{
|
||||
return (((uint64)InternalSample() << 32) | (uint64)InternalSample());
|
||||
}
|
||||
|
||||
private double GetSampleForLargeRange()
|
||||
{
|
||||
// The distribution of double value returned by Sample
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue