<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.8.5</li>
<li>Operating System version: mac os 10.14</li>
<li>Java version: 1.8.0_191</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>dubbo provider返回类型为Float或者带有float的时候：</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Float test();"><pre class="notranslate"><code class="notranslate">Float test();
</code></pre></div>
<p dir="auto">implements为：</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Override
    public Float test() {
        return 99.8F;
    }"><pre class="notranslate"><code class="notranslate">@Override
    public Float test() {
        return 99.8F;
    }
</code></pre></div>
<ol start="2" dir="auto">
<li>消费者为泛化调用：</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    Object result = genericService.$invoke(methodName, parameterTypes, params); //泛化调用刚刚的方法"><pre class="notranslate"><code class="notranslate">    Object result = genericService.$invoke(methodName, parameterTypes, params); //泛化调用刚刚的方法
</code></pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">结果不出意料的化应当是99.8</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">实际得到的是99.80000305175781<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21658981/56009427-4df1d680-5d12-11e9-90ec-f905a65cfbe1.png"><img src="https://user-images.githubusercontent.com/21658981/56009427-4df1d680-5d12-11e9-90ec-f905a65cfbe1.png" alt="image" style="max-width: 100%;"></a></p>
<h4 dir="auto">当我把上诉的Float类型改成Double的时候却不会出现这个情况（泛化调用float类型精度会丢失？）</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5</li>
<li>Operating System version:  windows10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">ProviderConfig</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Configuration
    @EnableDubbo(scanBasePackages = &quot;org.apache.dubbo.demo.provider&quot;)
    @PropertySource(&quot;classpath:/spring/dubbo-provider.properties&quot;)
    @ComponentScan
    static class ProviderConfiguration {
        @Bean
        public RegistryConfig registryConfig() {
            RegistryConfig registryConfig = new RegistryConfig();
            registryConfig.setAddress(&quot;nacos://192.168.1.101:8848&quot;);
            // 设置部分配置进入配置中心
            registryConfig.setSimplified(true);
            return registryConfig;
        }

        @Bean
        public ConfigCenterConfig configCenterConfig() {
            ConfigCenterConfig configCenterConfig = new ConfigCenterConfig();
            configCenterConfig.setAddress(&quot;nacos://192.168.1.101:8848&quot;);
            return configCenterConfig;
        }

        @Bean
        public MetadataReportConfig metadataReportConfig() {
            MetadataReportConfig metadataReportConfig = new MetadataReportConfig();
            metadataReportConfig.setAddress(&quot;nacos://192.168.1.101:8848&quot;);
            return metadataReportConfig;
        }
    }"><pre class="notranslate"><code class="notranslate">@Configuration
    @EnableDubbo(scanBasePackages = "org.apache.dubbo.demo.provider")
    @PropertySource("classpath:/spring/dubbo-provider.properties")
    @ComponentScan
    static class ProviderConfiguration {
        @Bean
        public RegistryConfig registryConfig() {
            RegistryConfig registryConfig = new RegistryConfig();
            registryConfig.setAddress("nacos://192.168.1.101:8848");
            // 设置部分配置进入配置中心
            registryConfig.setSimplified(true);
            return registryConfig;
        }

        @Bean
        public ConfigCenterConfig configCenterConfig() {
            ConfigCenterConfig configCenterConfig = new ConfigCenterConfig();
            configCenterConfig.setAddress("nacos://192.168.1.101:8848");
            return configCenterConfig;
        }

        @Bean
        public MetadataReportConfig metadataReportConfig() {
            MetadataReportConfig metadataReportConfig = new MetadataReportConfig();
            metadataReportConfig.setAddress("nacos://192.168.1.101:8848");
            return metadataReportConfig;
        }
    }
</code></pre></div>
<p dir="auto">when enabled <code class="notranslate">setSimplified(true)</code>,  nacos services name is <code class="notranslate">providers::::</code><br>
because</p>
<p dir="auto">NacosRegistry.java</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private String getServiceName(URL url) {
        return getServiceName(url, url.getParameter(CATEGORY_KEY, DEFAULT_CATEGORY));
    }

    private String getServiceName(URL url, String category) {
        return category + SERVICE_NAME_SEPARATOR + url.getColonSeparatedKey();
    }"><pre class="notranslate"><code class="notranslate">private String getServiceName(URL url) {
        return getServiceName(url, url.getParameter(CATEGORY_KEY, DEFAULT_CATEGORY));
    }

    private String getServiceName(URL url, String category) {
        return category + SERVICE_NAME_SEPARATOR + url.getColonSeparatedKey();
    }
</code></pre></div>
<p dir="auto">URL.java</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /**
     * The format is &quot;{interface}:[version]:[group]&quot;
     * @return
     */
    public String getColonSeparatedKey() {
        StringBuilder serviceNameBuilder = new StringBuilder();
        append(serviceNameBuilder, INTERFACE_KEY, true);
        append(serviceNameBuilder, VERSION_KEY, false);
        append(serviceNameBuilder, GROUP_KEY, false);
        return serviceNameBuilder.toString();
    }"><pre class="notranslate"><code class="notranslate"> /**
     * The format is "{interface}:[version]:[group]"
     * @return
     */
    public String getColonSeparatedKey() {
        StringBuilder serviceNameBuilder = new StringBuilder();
        append(serviceNameBuilder, INTERFACE_KEY, true);
        append(serviceNameBuilder, VERSION_KEY, false);
        append(serviceNameBuilder, GROUP_KEY, false);
        return serviceNameBuilder.toString();
    }
</code></pre></div>
<p dir="auto">when enabled <code class="notranslate">setSimplified(true)</code>,  interface will not register to Registry。please see<br>
<a href="http://dubbo.apache.org/zh-cn/docs/user/demos/simplify-registry-data.html" rel="nofollow">http://dubbo.apache.org/zh-cn/docs/user/demos/simplify-registry-data.html</a></p>