{"id":1217,"date":"2008-01-03T21:52:00","date_gmt":"2008-01-04T04:52:00","guid":{"rendered":"http:\/\/kodegeek.com\/blog\/?p=1217"},"modified":"2008-01-03T21:52:00","modified_gmt":"2008-01-04T04:52:00","slug":"conversion-de-bs-a-bsf-en-java-ii","status":"publish","type":"post","link":"http:\/\/kodegeek.com\/blog\/2008\/01\/03\/conversion-de-bs-a-bsf-en-java-ii\/","title":{"rendered":"Conversion de Bs. a Bs.F. en Java (II)"},"content":{"rendered":"<p><a href=\"http:\/\/www.flickr.com\/photos\/josevnz\/2165245020\/\" title=\"BsF by josevnz, on Flickr\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/farm3.static.flickr.com\/2346\/2165245020_da0aefd859.jpg\" alt=\"BsF\" height=\"91\" width=\"500\" \/><\/a><br \/><a href=\"http:\/\/www.flickr.com\/photos\/josevnz\/2165245020\/\" title=\"BsF by josevnz, on Flickr\">No resisti la tentaci\u00f3n de envenenar el programita (n pasaban nada bueno en televisi\u00f3n \ud83d\ude42 )<\/a><\/p>\n<p>Ya mis vacaciones llegaron a su fin; Voy a emplear el \u00faltimo dia en algo que no tenga que ver con la computadora (es increible como pasan de r\u00e1pido 2 semanas).<\/p>\n<p>En fin, de vuelta a la realidad \ud83d\ude42<\/p>\n<p>Me p<a href=\"http:\/\/kodegeek.com\/2008\/01\/convirtiendo-bolivares-bolivares.shtml\">use a jugar un poco con el pedacito de c\u00f3digo<\/a> que convierte de Bs. a Bs.F. desde Java y lo <a href=\"http:\/\/elangelnegro.cvs.sourceforge.net\/elangelnegro\/src\/java\/main\/com\/kodegeek\/blog\/finance\/venezuela\/BsF.java?view=markup\">converti <\/a>en un programa con interfaz gr\u00e1fica <a href=\"http:\/\/www.kodegeek.com\/java\/BsF.jnlp\">el cual te puedes correr<\/a> desde tu navegador, o si lo prefieres desde la linea de comandos as\u00ed:<\/p>\n<p><span style=\"font-style: italic;\">javaws http:\/\/kodegeek.com\/java\/Bsf.jnlp<\/span><\/p>\n<p>Me di cuenta de un error cuando procesas n\u00fameros en formato distinto al idioma Ingles el cual solucione usando <a href=\"http:\/\/java.sun.com\/j2se\/1.4.2\/docs\/api\/java\/text\/DecimalFormat.html\">DecimalFormat<\/a> el cual si soporta <a href=\"http:\/\/java.sun.com\/j2se\/1.4.2\/docs\/api\/java\/util\/Locale.html\">Locale<\/a>. Tambi\u00e9n removi un cambio global de Locale el cual no era necesario.<\/p>\n<p>Como siempre <a href=\"http:\/\/elangelnegro.cvs.sourceforge.net\/elangelnegro\/src\/java\/main\/com\/kodegeek\/blog\/finance\/venezuela\/BsF.java?view=log\">el c\u00f3digo est\u00e1 disponible en Source Forge<\/a>, se aceptan sugerencias para mejorarlo.<\/p>\n<p>Actualizaci\u00f3n: Llegamos al apartamento a las 2:00 AM, de vuelta a Norwalk \ud83d\ude42<\/p>\n<p>Blogalaxia:<a href=\"http:\/\/www.blogalaxia.com\/tags\/reconversion\" rel=\"tag\">reconversion<\/a>, <a href=\"http:\/\/www.blogalaxia.com\/tags\/bolivares\" rel=\"tag\">bolivares<\/a>, <a href=\"http:\/\/www.blogalaxia.com\/tags\/bolivar+fuerte\" rel=\"tag\">bolivar fuerte<\/a>, <a href=\"http:\/\/www.blogalaxia.com\/tags\/java\" rel=\"tag\">java<\/a><br \/>Technorati:<a href=\"http:\/\/technorati.com\/tag\/reconversion\" rel=\"tag\">reconversion<\/a>, <a href=\"http:\/\/technorati.com\/tag\/bolivares\" rel=\"tag\">bolivares<\/a>, <a href=\"http:\/\/technorati.com\/tag\/bolivar+fuerte\" rel=\"tag\">bolivar fuerte<\/a>, <a href=\"http:\/\/technorati.com\/tag\/java\" rel=\"tag\">java<\/a><br \/>To2blogs:<a href=\"http:\/\/www.to2blogs.com\/tag\/reconversion\" rel=\"tag\">reconversion<\/a>, <a href=\"http:\/\/www.to2blogs.com\/tag\/bolivares\" rel=\"tag\">bolivares<\/a>, <a href=\"http:\/\/www.to2blogs.com\/tag\/bolivar+fuerte\" rel=\"tag\">bolivar fuerte<\/a>, <a href=\"http:\/\/www.to2blogs.com\/tag\/java\" rel=\"tag\">java<\/a><br \/>Del.icio.us:<a href=\"http:\/\/del.icio.us\/tag\/reconversion\" rel=\"tag\">reconversion<\/a>, <a href=\"http:\/\/del.icio.us\/tag\/bolivares\" rel=\"tag\">bolivares<\/a>, <a href=\"http:\/\/del.icio.us\/tag\/bolivar+fuerte\" rel=\"tag\">bolivar fuerte<\/a>, <a href=\"http:\/\/del.icio.us\/tag\/java\" rel=\"tag\">java<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>No resisti la tentaci\u00f3n de envenenar el programita (n pasaban nada bueno en televisi\u00f3n \ud83d\ude42 ) Ya mis vacaciones llegaron a su fin; Voy a emplear el \u00faltimo dia en algo que no tenga que ver con la computadora (es increible como pasan de r\u00e1pido 2 semanas). En fin, de vuelta a la realidad \ud83d\ude42 <a class=\"read-more\" href=\"http:\/\/kodegeek.com\/blog\/2008\/01\/03\/conversion-de-bs-a-bsf-en-java-ii\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[79,282,757,281],"_links":{"self":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts\/1217"}],"collection":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/comments?post=1217"}],"version-history":[{"count":0,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/posts\/1217\/revisions"}],"wp:attachment":[{"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/media?parent=1217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/categories?post=1217"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kodegeek.com\/blog\/wp-json\/wp\/v2\/tags?post=1217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}