mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
23 lines
488 B
JavaScript
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());
|
|
}
|
|
};
|