How do I include the stop value in the array by using arrayrange?

Hi,all:
How do I include the stop value in the array by using arrayrange?
Say:
arrayrange(0,10,1.0,Float)
[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.,]
but I want 10 to be included

Thanks

zhangh1@...1278... wrote:

Hi,all:
How do I include the stop value in the array by using arrayrange?
Say:
arrayrange(0,10,1.0,Float)
[ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.,]
but I want 10 to be included

1. arrayrange() is a deprecated name. arange() is the preferred name.

2. However, arange() with floating point numbers is unreliable. Because of
floating point precision issues, it is often difficult to tell whether or not
the endpoint will be included. Use linspace() instead.

ยทยทยท

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
  -- Umberto Eco