Module:MOS intro: Difference between revisions
Added punctuation, added back use of rounding function from utils module to resolve instances of negative 0 |
Rounded values for generators |
||
| Line 191: | Line 191: | ||
local dark_gen_max = equave_in_cents / n - bright_gen_min | local dark_gen_max = equave_in_cents / n - bright_gen_min | ||
local sentence = string.format("[[generator|Generating intervals]] that produce this scale range from % | -- Round values | ||
local round = 3 | |||
bright_gen_min = utils._round_dec(bright_gen_min) | |||
bright_gen_max = utils._round_dec(bright_gen_max) | |||
dark_gen_min = utils._round_dec(dark_gen_min) | |||
dark_gen_max = utils._round_dec(dark_gen_max) | |||
local sentence = string.format("[[generator|Generating intervals]] that produce this scale range from %f¢ to %f¢, or from %f¢ to %f¢.", bright_gen_min, bright_gen_max, dark_gen_min, dark_gen_max) | |||
return sentence | return sentence | ||