---
title: "jruby1.6.7.2 integer can't round"
author: "clark1231"
date: "2012-07-10T09:32:25Z"
tags: ["jruby"]
categories: ["编程语言"]
slug: "jruby1-6-7-2-integer-can-t-round"
draft: false
lastmod: "2012-07-10T09:32:25Z"
id: 1583776
url: "https://caok1231.iteye.com/blog/1583776"
---

在jruby-1.6.7.2中

integer无法取round

如出现这种问题时需要先对其to\_f后再取round