General fixes tweaks and things
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Upsilon.BaseTypes.Number
|
||||
public static ScriptNumber operator / (ScriptNumber a, ScriptNumber b)
|
||||
{
|
||||
if (!a.IsFloat && !b.IsFloat)
|
||||
return new ScriptNumberLong(((ScriptNumberLong) a).Value / ((ScriptNumberLong) b).Value);
|
||||
return new ScriptNumberDouble(((ScriptNumberLong) a).Value / (double)((ScriptNumberLong) b).Value);
|
||||
if (a.IsFloat && b.IsFloat)
|
||||
return new ScriptNumberDouble(((ScriptNumberDouble) a).Value / ((ScriptNumberDouble) b).Value);
|
||||
if (a.IsFloat)
|
||||
|
||||
Reference in New Issue
Block a user