From 3d594a844cecb4f7759ebf9b8b2ea920e64ff379 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 19 Sep 2020 06:22:09 +0200 Subject: [PATCH] Examine Spreadlevel: Allow power to be non-integer --- src/language/stats/examine.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/language/stats/examine.c b/src/language/stats/examine.c index c17b322dd5..50e5517828 100644 --- a/src/language/stats/examine.c +++ b/src/language/stats/examine.c @@ -135,7 +135,7 @@ struct examine size_t n_percentiles; unsigned int plot; - int sl_power; + float sl_power; enum bp_mode boxplot_mode; @@ -1725,9 +1725,9 @@ cmd_examine (struct lexer *lexer, struct dataset *ds) { examine.plot |= PLOT_SPREADLEVEL; examine.sl_power = 0; - if (lex_match (lexer, T_LPAREN) && lex_force_int (lexer)) + if (lex_match (lexer, T_LPAREN) && lex_force_num (lexer)) { - examine.sl_power = lex_integer (lexer); + examine.sl_power = lex_number (lexer); lex_get (lexer); if (! lex_force_match (lexer, T_RPAREN)) -- 2.30.2