Files
xiao/commands/number-edit/scientific-notation.js
T
2018-11-03 18:21:19 +00:00

25 lines
602 B
JavaScript

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