---
title: "Convert from String to float"
author: "ydsakyclguozi"
date: "2010-02-07T16:52:47Z"
tags: []
categories: ["编程语言"]
slug: "convert-from-string-to-float"
draft: false
lastmod: "2010-02-07T16:52:47Z"
id: 591062
url: "https://52347.iteye.com/blog/591062"
---

public class Main {
  public static void main(String args) throws Exception {

    Float f = Float.valueOf("0.2").floatValue();
  }
}