this also depends on what do you expect for negative numbers. Sent from my iPhone
On 6 Aug, 2017, at 7:35 AM, Skip Cave <s...@caveconsulting.com> wrote: > Oops! i meant: > > How does one find the fractional parts of a vector of floating point > numbers? > > 0.542857 1.1875 1.96552 2.92308 4.13043 5.7 7.82353 10.8571 15.5455 23.75 > 41.8 114 247 > > i want: > 0.542857 0.1875 0.96552 0.92308 0.13043 0.7 0.82353 0.8571 5.5455 0.75 0.8 > 0 0 > > (Last two integers have zero fractional part.) > > > Skip Cave > Cave Consulting LLC > > On Sat, Aug 5, 2017 at 6:30 PM, Skip Cave <s...@caveconsulting.com> wrote: > >> How does one find the fractional parts of a vector of floating point >> numbers? >> >> 0.542857 1.1875 1.96552 2.92308 4.13043 5.7 7.82353 10.8571 15.5455 23.75 >> 41.8 114 247 >> >> i want: >> 0.542857 0.1875 0.96552 0.92308 0.13043 0.7 0.82353 0.8571 5.5455 0.75 0.8 >> 114 247 >> >> Skip >> >> Skip Cave >> Cave Consulting LLC > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm