Posts

Showing posts from December 2, 2018

How to convert -1x10^200 to IEEE 754 double precision

Image
up vote -1 down vote favorite So like above, I want to find the IEEE 754 representation of -1x10^200. I know we can get the sign be to be 1, as we have a negative number. However I am unsure of how to find the mantissa/exponent. My initial idea was to convert 10^200 to 2^x. However x is not a whole number. So I figure we need to get a fraction somehow by separating the 10^200 somehow. Theoretically one could use very long devision, but I am looking for a more elegant answer that can be done without a high precision calculator. c++ floating-point binary double ieee-754 share | improve this question asked Nov 11 at 1:12 Philip Bal

Detroit blues

Image
Detroit blues Stylistic origins Delta blues Cultural origins Early 20th century, Detroit, United States Typical instruments Electric guitar harmonica drums piano bass guitar saxophone John Lee Hooker Detroit blues is blues played by musicians residing in and around Detroit, Michigan, particularly in the 1940s and 1950s. Detroit blues originated when Delta blues performers migrated north from the Mississippi Delta and Memphis, Tennessee, to work in industrial plants in Detroit in the 1920s and 1930s. Typical Detroit blues is similar in style to Chicago blues. Its sound is distinguished from Delta blues by the use of electric amplified instruments and more varied instrumentation, including the bass guitar and piano. The only Detroit blues performer to achieve national fame was John Lee Hooker, as record companies and promoters have tended to ignore the Detroit scene in favor of the larger, more influential Chicago blues. The Detroit scene was centered on t

why spring boot webservice response count is not match with request count

Image
up vote 0 down vote favorite I finish a simple spring boot webservice , here is the controller 's code package com.example.ly.FirstWebService; import org.springframework.web.bind.annotation.RestController; import org.springframework.format.annotation.DateTimeFormat; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @RestController public class HelloController { Logger logger = LoggerFactory.getLogger(HelloController.class); @RequestMapping("/") public