scripts
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
|
||||
namespace UnityEngine.Networking
|
||||
{
|
||||
// Token: 0x0200003C RID: 60
|
||||
internal class FloatConversion
|
||||
{
|
||||
// Token: 0x0600015D RID: 349 RVA: 0x0000A954 File Offset: 0x00008B54
|
||||
public static float ToSingle(uint value)
|
||||
{
|
||||
UIntFloat uintFloat = default(UIntFloat);
|
||||
uintFloat.intValue = value;
|
||||
return uintFloat.floatValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600015E RID: 350 RVA: 0x0000A980 File Offset: 0x00008B80
|
||||
public static double ToDouble(ulong value)
|
||||
{
|
||||
UIntFloat uintFloat = default(UIntFloat);
|
||||
uintFloat.longValue = value;
|
||||
return uintFloat.doubleValue;
|
||||
}
|
||||
|
||||
// Token: 0x0600015F RID: 351 RVA: 0x0000A9AC File Offset: 0x00008BAC
|
||||
public static decimal ToDecimal(ulong value1, ulong value2)
|
||||
{
|
||||
UIntDecimal uintDecimal = default(UIntDecimal);
|
||||
uintDecimal.longValue1 = value1;
|
||||
uintDecimal.longValue2 = value2;
|
||||
return uintDecimal.decimalValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user