oopsie hehe
This commit is contained in:
		
							parent
							
								
									2da9943ea3
								
							
						
					
					
						commit
						2c2fd8f3f9
					
				
							
								
								
									
										7
									
								
								tree.go
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								tree.go
									
									
									
									
									
								
							@ -418,7 +418,7 @@ func (operation *Operation) Solution () (solution int64, err error) {
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (operation *Operation) InexactSolution (solution float64, err error) {
 | 
			
		||||
func (operation *Operation) InexactSolution () (solution float64, err error) {
 | 
			
		||||
	var intSolution int64
 | 
			
		||||
	intSolution, err = operation.Solution()
 | 
			
		||||
	solution = float64(intSolution)
 | 
			
		||||
@ -529,3 +529,8 @@ func (literal *IntegerLiteral) Solution () (solution int64, err error) {
 | 
			
		||||
	solution = literal.value
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (literal *IntegerLiteral) InexactSolution () (solution float64, err error) {
 | 
			
		||||
	solution = float64(literal.value)
 | 
			
		||||
	return
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user