src/DxfArrayScanner.js
function parseGroupValue(code, value) {
	if(code <= 9) return value;
	if(code >= 10 && code <= 59) return parseFloat(value);
	if(code >= 60 && code <= 99) return parseInt(value);
	if(code >= 100 && code <= 109) return value;
	if(code >= 110 && code <= 149) return parseFloat(value);
	if(code >= 160 && code <= 179) return parseInt(value);
	if(code >= 210 && code <= 239) return parseFloat(value);
	if(code >= 270 && code <= 289) return parseInt(value);
	if(code >= 290 && code <= 299) return parseBoolean(value);
	if(code >= 300 && code <= 369) return value;
	if(code >= 370 && code <= 389) return parseInt(value);
	if(code >= 390 && code <= 399) return value;
	if(code >= 400 && code <= 409) return parseInt(value);
	if(code >= 410 && code <= 419) return value;
	if(code >= 420 && code <= 429) return parseInt(value);
	if(code >= 430 && code <= 439) return value;
	if(code >= 440 && code <= 459) return parseInt(value);
	if(code >= 460 && code <= 469) return parseFloat(value);
	if(code >= 470 && code <= 481) return value;
	if(code === 999) return value;
	if(code >= 1000 && code <= 1009) return value;
	if(code >= 1010 && code <= 1059) return parseFloat(value);
	if(code >= 1060 && code <= 1071) return parseInt(value);

	console.log('WARNING: Group code does not have a defined type: %j', { code: code, value: value });
	return value;
}
function parseGroupValue(code, value) {
	if(code <= 9) return value;
	if(code >= 10 && code <= 59) return parseFloat(value);
	if(code >= 60 && code <= 99) return parseInt(value);
	if(code >= 100 && code <= 109) return value;
	if(code >= 110 && code <= 149) return parseFloat(value);
	if(code >= 160 && code <= 179) return parseInt(value);
	if(code >= 210 && code <= 239) return parseFloat(value);
	if(code >= 270 && code <= 289) return parseInt(value);
	if(code >= 290 && code <= 299) return parseBoolean(value);
	if(code >= 300 && code <= 369) return value;
	if(code >= 370 && code <= 389) return parseInt(value);
	if(code >= 390 && code <= 399) return value;
	if(code >= 400 && code <= 409) return parseInt(value);
	if(code >= 410 && code <= 419) return value;
	if(code >= 420 && code <= 429) return parseInt(value);
	if(code >= 430 && code <= 439) return value;
	if(code >= 440 && code <= 459) return parseInt(value);
	if(code >= 460 && code <= 469) return parseFloat(value);
	if(code >= 470 && code <= 481) return value;
	if(code === 999) return value;
	if(code >= 1000 && code <= 1009) return value;
	if(code >= 1010 && code <= 1059) return parseFloat(value);
	if(code >= 1060 && code <= 1071) return parseInt(value);

	console.log('WARNING: Group code does not have a defined type: %j', { code: code, value: value });
	return value;
}
function parseGroupValue ( code , value ) { if ( code <= 9 ) return value ; if ( code >= 10 && code <= 59 ) return parseFloat ( value ) ; if ( code >= 60 && code <= 99 ) return parseInt ( value ) ; if ( code >= 100 && code <= 109 ) return value ; if ( code >= 110 && code <= 149 ) return parseFloat ( value ) ; if ( code >= 160 && code <= 179 ) return parseInt ( value ) ; if ( code >= 210 && code <= 239 ) return parseFloat ( value ) ; if ( code >= 270 && code <= 289 ) return parseInt ( value ) ; if ( code >= 290 && code <= 299 ) return parseBoolean ( value ) ; if ( code >= 300 && code <= 369 ) return value ; if ( code >= 370 && code <= 389 ) return parseInt ( value ) ; if ( code >= 390 && code <= 399 ) return value ; if ( code >= 400 && code <= 409 ) return parseInt ( value ) ; if ( code >= 410 && code <= 419 ) return value ; if ( code >= 420 && code <= 429 ) return parseInt ( value ) ; if ( code >= 430 && code <= 439 ) return value ; if ( code >= 440 && code <= 459 ) return parseInt ( value ) ; if ( code >= 460 && code <= 469 ) return parseFloat ( value ) ; if ( code >= 470 && code <= 481 ) return value ; if ( code === 999 ) return value ; if ( code >= 1000 && code <= 1009 ) return value ; if ( code >= 1010 && code <= 1059 ) return parseFloat ( value ) ; if ( code >= 1060 && code <= 1071 ) return parseInt ( value ) ; console . log ( 'WARNING: Group code does not have a defined type: %j' , { code : code , value : value } ) ; return value ; }
Parse a value to its proper type.
See pages 3 - 10 of the AutoCad DXF 2012 reference given at the top of this file

@param code
@param value
@returns {*}
Parse a value to its proper type . See pages 3 - 10 of the AutoCad DXF 2012 reference given at the top of this file