lib/protocol.js
function encodeDouble(value) {
	if (value === null) {
		return values.NULL;
	} else if (!isNaN(value)) {
		return value + "";
	} else {
		throw new Error('Invalid double value "' + value + '"');
	}
}
function encodeDouble(value) {
	if (value === null) {
		return values.NULL;
	} else if (!isNaN(value)) {
		return value + "";
	} else {
		throw new Error('Invalid double value "' + value + '"');
	}
}
function encodeDouble ( value ) { if ( value === null ) { return values . NULL ; } else if ( ! isNaN ( value ) ) { return value + "" ; } else { throw new Error ( 'Invalid double value "' + value + '"' ) ; } }
Encodes a float according to the ARI protocol.

@param {Number} value input
@return {String} output
@private
Encodes a float according to the ARI protocol .