Files
xiao/commands/edit-number/scientific-notation.js
2024-05-21 21:02:12 -04:00

23 lines
488 B
JavaScript

const Command = require('../../framework/Command');
module.exports = class ScientificNotationCommand extends Command {
constructor(client) {
super(client, {
name: 'scientific-notation',
aliases: ['science-notation', 'exponential-notation'],
group: 'edit-number',
description: 'Converts a number to scientific notation.',
args: [
{
key: 'number',
type: 'float'
}
]
});
}
run(msg, { number }) {
return msg.reply(number.toExponential());
}
};