version	U12.1.00
uid	glabels.u1-1786033005-0
impl	error
link	numbers.u
global	2
	0,000005,glabels,3
	1,000005,nicenum,2

proc glabels
	local	0,001000,min
	local	1,001000,max
	local	2,001000,ntick
	local	3,000020,d
	local	4,000020,graphmin
	local	5,000020,graphmax
	local	6,000020,nfrac
	local	7,000020,llist
	local	8,000020,x
	local	9,000020,nf
	local	10,000020,range
	local	11,000000,nicenum
	local	12,000000,floor
	local	13,000000,ceil
	local	14,000000,log
	local	15,000000,put
	con	0,002000,1,1
	con	1,002000,2,10
	con	2,002000,1,0
	con	3,004000,0.5
	declend
	filen	glabels.icn
	line	30
	colm	11
	synt	any
	mark	L1
	line	33
	colm	4
	synt	if
	mark0
	pnull
	var	0
	var	1
	line	33
	colm	11
	synt	any
	numeq
	unmark
	line	33
	colm	22
	synt	any
	pfail
	line	33
	colm	4
	synt	endif
	unmark
lab L1
	mark	L2
	pnull
	var	10
	var	11
	pnull
	var	1
	var	0
	line	35
	colm	25
	synt	any
	minus
	line	35
	colm	20
	synt	any
	invoke	1
	line	35
	colm	10
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	pnull
	var	3
	var	11
	pnull
	var	10
	pnull
	var	2
	int	0
	line	36
	colm	32
	synt	any
	minus
	line	36
	colm	23
	synt	any
	div
	int	0
	line	36
	colm	16
	synt	any
	invoke	2
	line	36
	colm	6
	synt	any
	asgn
	unmark
lab L3
	mark	L4
	pnull
	var	4
	pnull
	var	12
	pnull
	var	0
	var	3
	line	37
	colm	26
	synt	any
	div
	line	37
	colm	21
	synt	any
	invoke	1
	var	3
	line	37
	colm	31
	synt	any
	mult
	line	37
	colm	13
	synt	any
	asgn
	unmark
lab L4
	mark	L5
	pnull
	var	5
	pnull
	var	13
	pnull
	var	1
	var	3
	line	38
	colm	25
	synt	any
	div
	line	38
	colm	20
	synt	any
	invoke	1
	var	3
	line	38
	colm	30
	synt	any
	mult
	line	38
	colm	13
	synt	any
	asgn
	unmark
lab L5
	mark	L6
	pnull
	var	6
	var	1
	pnull
	var	12
	var	14
	var	3
	int	1
	line	39
	colm	27
	synt	any
	invoke	2
	line	39
	colm	23
	synt	any
	invoke	1
	line	39
	colm	17
	synt	any
	neg
	int	2
	line	39
	colm	16
	synt	any
	invoke	2
	line	39
	colm	10
	synt	any
	asgn
	unmark
lab L6
	mark	L7
	pnull
	var	7
	pnull
	line	40
	colm	13
	synt	any
	llist	0
	line	40
	colm	10
	synt	any
	asgn
	unmark
lab L7
	mark	L8
	line	41
	colm	4
	synt	every
	mark0
	pnull
	var	8
	pnull
	var	4
	pnull
	var	5
	pnull
	real	3
	var	3
	line	41
	colm	42
	synt	any
	mult
	line	41
	colm	36
	synt	any
	plus
	var	3
	line	41
	colm	24
	synt	any
	toby
	line	41
	colm	12
	synt	any
	asgn
	pop
	mark0
	var	15
	var	7
	var	8
	line	42
	colm	9
	synt	any
	invoke	2
	unmark
lab L9
	efail
lab L10
	line	41
	colm	4
	synt	endevery
	unmark
lab L8
	mark	L11
	mark	L12
	var	7
	line	44
	colm	4
	synt	any
	pret
lab L12
	synt	any
	pfail
	unmark
lab L11
	pnull
	line	46
	colm	1
	synt	any
	pfail
	end
proc nicenum
	local	0,001000,x
	local	1,001000,round
	local	2,000020,exp
	local	3,000020,f
	local	4,000020,nf
	local	5,000000,floor
	local	6,000000,log
	con	0,002000,2,10
	con	1,004000,1.5
	con	2,002000,1,1
	con	3,004000,3.0
	con	4,002000,1,2
	con	5,002000,1,7
	con	6,002000,1,5
	declend
	line	48
	colm	11
	synt	any
	mark	L1
	pnull
	var	2
	var	5
	var	6
	var	0
	int	0
	line	51
	colm	20
	synt	any
	invoke	2
	line	51
	colm	16
	synt	any
	invoke	1
	line	51
	colm	8
	synt	any
	asgn
	unmark
lab L1
	mark	L2
	pnull
	var	3
	pnull
	var	0
	pnull
	int	0
	var	2
	line	52
	colm	17
	synt	any
	power
	line	52
	colm	11
	synt	any
	div
	line	52
	colm	6
	synt	any
	asgn
	unmark
lab L2
	mark	L3
	line	53
	colm	4
	synt	ifelse
	mark	L4
	pnull
	var	1
	line	53
	colm	7
	synt	any
	nonnull
	unmark
	line	54
	colm	7
	synt	ifelse
	mark	L6
	pnull
	var	3
	real	1
	line	54
	colm	12
	synt	any
	numlt
	unmark
	pnull
	var	4
	int	2
	line	54
	colm	26
	synt	any
	asgn
	goto	L7
lab L6
	line	55
	colm	12
	synt	ifelse
	mark	L8
	pnull
	var	3
	real	3
	line	55
	colm	17
	synt	any
	numlt
	unmark
	pnull
	var	4
	int	4
	line	55
	colm	31
	synt	any
	asgn
	goto	L9
lab L8
	line	56
	colm	12
	synt	ifelse
	mark	L10
	pnull
	var	3
	int	5
	line	56
	colm	17
	synt	any
	numlt
	unmark
	pnull
	var	4
	int	6
	line	56
	colm	29
	synt	any
	asgn
	goto	L11
lab L10
	pnull
	var	4
	int	0
	line	57
	colm	15
	synt	any
	asgn
lab L11
	line	56
	colm	12
	synt	endifelse
lab L9
	line	55
	colm	12
	synt	endifelse
lab L7
	line	54
	colm	7
	synt	endifelse
	goto	L5
lab L4
	line	60
	colm	7
	synt	ifelse
	mark	L12
	pnull
	var	3
	int	2
	line	60
	colm	12
	synt	any
	numle
	unmark
	pnull
	var	4
	int	2
	line	60
	colm	25
	synt	any
	asgn
	goto	L13
lab L12
	line	61
	colm	12
	synt	ifelse
	mark	L14
	pnull
	var	3
	int	4
	line	61
	colm	17
	synt	any
	numle
	unmark
	pnull
	var	4
	int	4
	line	61
	colm	30
	synt	any
	asgn
	goto	L15
lab L14
	line	62
	colm	12
	synt	ifelse
	mark	L16
	pnull
	var	3
	int	6
	line	62
	colm	17
	synt	any
	numle
	unmark
	pnull
	var	4
	int	6
	line	62
	colm	30
	synt	any
	asgn
	goto	L17
lab L16
	pnull
	var	4
	int	0
	line	63
	colm	15
	synt	any
	asgn
lab L17
	line	62
	colm	12
	synt	endifelse
lab L15
	line	61
	colm	12
	synt	endifelse
lab L13
	line	60
	colm	7
	synt	endifelse
lab L5
	line	53
	colm	4
	synt	endifelse
	unmark
lab L3
	mark	L18
	mark	L19
	pnull
	var	4
	pnull
	int	0
	var	2
	line	66
	colm	20
	synt	any
	power
	line	66
	colm	14
	synt	any
	mult
	line	66
	colm	4
	synt	any
	pret
lab L19
	synt	any
	pfail
	unmark
lab L18
	pnull
	line	68
	colm	1
	synt	any
	pfail
	end
