Post Reply 
arg() crashes the emulator
02-25-2015, 04:02 PM
Post: #18
RE: arg() crashes the emulator
(02-25-2015 03:02 PM)Angus Wrote:  Han, you play a LOT with your prime don't you?

I did most of my tinkering during my summer/winter breaks. After a while, all these idiosyncrasies are a bit less of a surprise.

Quote:Do you have an idea why instring() returns with 3. and not with 3 in your example?

The issue you are having with instring() is that it's returning a "non-exact" value 3. as opposed to the "exact" value 3 (it's an issue of floating point vs integer). Anyway, mid() requires integer inputs, so you are getting erroneous output. To put it simply, using CAS commands in Home, and non-CAS commands in CAS will always require some care.

As for why you are getting 3. vs 3 it is likely due to your CAS settings (Change apparent integers to exact integers; next to the "Integer" type field)

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
arg() crashes the emulator - Angus - 02-20-2015, 10:56 AM
RE: arg() crashes the emulator - salvomic - 02-20-2015, 11:28 AM
RE: arg() crashes the emulator - Angus - 02-20-2015, 11:49 AM
RE: arg() crashes the emulator - salvomic - 02-20-2015, 12:10 PM
RE: arg() crashes the emulator - dg1969 - 02-23-2015, 07:33 PM
RE: arg() crashes the emulator - Angus - 02-20-2015, 12:14 PM
RE: arg() crashes the emulator - salvomic - 02-20-2015, 12:25 PM
RE: arg() crashes the emulator - Angus - 02-20-2015, 12:31 PM
RE: arg() crashes the emulator - salvomic - 02-20-2015, 01:43 PM
RE: arg() crashes the emulator - Angus - 02-24-2015, 06:19 AM
RE: arg() crashes the emulator - Han - 02-24-2015, 12:21 PM
RE: arg() crashes the emulator - Angus - 02-24-2015, 01:15 PM
RE: arg() crashes the emulator - Han - 02-24-2015, 03:24 PM
RE: arg() crashes the emulator - Angus - 02-25-2015, 06:00 AM
RE: arg() crashes the emulator - salvomic - 02-25-2015, 08:47 AM
RE: arg() crashes the emulator - Han - 02-25-2015, 02:54 PM
RE: arg() crashes the emulator - salvomic - 02-25-2015, 07:01 PM
RE: arg() crashes the emulator - salvomic - 02-25-2015, 07:22 PM
RE: arg() crashes the emulator - Angus - 02-25-2015, 03:02 PM
RE: arg() crashes the emulator - Han - 02-25-2015 04:02 PM
RE: arg() crashes the emulator - Angus - 02-25-2015, 04:13 PM
RE: arg() crashes the emulator - Han - 02-25-2015, 04:18 PM
RE: arg() crashes the emulator - Angus - 02-25-2015, 04:25 PM



User(s) browsing this thread: 1 Guest(s)