mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			Fix minimal-printf floating point decimal output error
							parent
							
								
									d6784c3ee6
								
							
						
					
					
						commit
						9a7b2a8647
					
				| 
						 | 
					@ -302,6 +302,8 @@ static void mbed_minimal_formatted_string_double(char *buffer, size_t length, in
 | 
				
			||||||
            precision *= 10;
 | 
					            precision *= 10;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        value = (value - integer) * precision;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /* convert to positive number */
 | 
					        /* convert to positive number */
 | 
				
			||||||
        if (value < 0.0) {
 | 
					        if (value < 0.0) {
 | 
				
			||||||
            value *= -1.0;
 | 
					            value *= -1.0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue