Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Apr 20, 2022
1 parent fa3170e commit 80b771d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ Object doLong(EnsoBigInteger _this, long that) {

@Specialization
double doDouble(EnsoBigInteger _this, double that) {
// No need to trap, as floating-point modulo returns NaN for division by zero instead of throwing.
// No need to trap, as floating-point modulo returns NaN for division by zero instead of
// throwing.
return BigIntegerOps.toDouble(_this.getValue()) % that;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Object doLong(long _this, long that) {

@Specialization
double doDouble(long _this, double that) {
// No need to trap, as floating-point modulo returns NaN for division by zero instead of throwing.
// No need to trap, as floating-point modulo returns NaN for division by zero instead of
// throwing.
return _this % that;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,37 +382,27 @@ private void registerDecimalMethods(Language language, ModuleScope scope) {
language));
}

/**
* @return the Int64 atom constructor.
*/
/** @return the Int64 atom constructor. */
public AtomConstructor getSmallInteger() {
return smallInteger;
}

/**
* @return the Big_Integer atom constructor.
*/
/** @return the Big_Integer atom constructor. */
public AtomConstructor getBigInteger() {
return bigInteger;
}

/**
* @return the Integer atom constructor
*/
/** @return the Integer atom constructor */
public AtomConstructor getInteger() {
return integer;
}

/**
* @return the Number atom constructor
*/
/** @return the Number atom constructor */
public AtomConstructor getNumber() {
return number;
}

/**
* @return the Decimal atom constructor
*/
/** @return the Decimal atom constructor */
public AtomConstructor getDecimal() {
return decimal;
}
Expand Down

0 comments on commit 80b771d

Please sign in to comment.