How can I get the hex value of CRC32 #12
	
		Labels
		
	
	
	
	
	
	
		No Milestone
		
			
		
	
	
		
		
		
			No project
			
				
			
		
	
	
	
	
	
		No Assignees
		
			
		
	
	
	
		1 Participants
		
	
	
		
		
			Notifications
			
				
			
		
	
	
	
	Due Date
	No due date set.
			
				Dependencies
				
				
		
	
	
	No dependencies set.
			Reference: sheetjs/js-crc32#12
			
		
	
		Loading…
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I want to get the hex value of CRC32, but I can not, cause the result is always decimal. Is the only option to covert decimal to hex format manually.
the return value is a signed 32 bit integer.
crc>>>0is an unsigned 32 bit int,(crc >>>0).toString(16)is the hex string without padding, and(crc >>>0).toString(16).padStart(8, '0')is the hex string with padding