comparison scripts/strings/dec2bin.m @ 28693:2bb050267d74

maint: Remove trailing spaces from code base. * NEWS, __ftp__.cc, graphics.in.h, rng.m, importdata.m, condest.m, fieldnames.m, uninstall.m, polyfit.m, dec2bin.m, dec2hex.m: Remove trailing spaces from code base.
author Rik <rik@octave.org>
date Tue, 08 Sep 2020 08:34:28 -0700
parents ef7bc64a604b
children 28de41192f3c
comparison
equal deleted inserted replaced
28692:eb35003c3851 28693:2bb050267d74
64 if (iscell (d)) 64 if (iscell (d))
65 d = cell2mat (d); 65 d = cell2mat (d);
66 endif 66 endif
67 ## Create column vector for algorithm (output is always col. vector anyways) 67 ## Create column vector for algorithm (output is always col. vector anyways)
68 d = d(:); 68 d = d(:);
69 69
70 lt_zero_idx = (d < 0); 70 lt_zero_idx = (d < 0);
71 if (any (lt_zero_idx)) 71 if (any (lt_zero_idx))
72 ## FIXME: Need an algorithm that works with larger values such as int64. 72 ## FIXME: Need an algorithm that works with larger values such as int64.
73 if (any (d(lt_zero_idx) < -2^52)) 73 if (any (d(lt_zero_idx) < -2^52))
74 error ("dec2bin: negative inputs cannot be less than -flintmax () / 2"); 74 error ("dec2bin: negative inputs cannot be less than -flintmax () / 2");