From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: How modify numbers in a region by a multiplier? Date: Thu, 1 Jul 2010 16:16:28 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1277993848 15647 80.91.229.12 (1 Jul 2010 14:17:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 14:17:28 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Seweryn Kokot Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 01 16:17:27 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OUKZx-0002Tg-NQ for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 16:17:26 +0200 Original-Received: from localhost ([127.0.0.1]:43405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUKZw-0004Hl-Fv for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Jul 2010 10:17:24 -0400 Original-Received: from [140.186.70.92] (port=41817 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUKZT-0004Er-Da for help-gnu-emacs@gnu.org; Thu, 01 Jul 2010 10:16:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUKZO-0005rB-Q8 for help-gnu-emacs@gnu.org; Thu, 01 Jul 2010 10:16:55 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:47701) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUKZO-0005r3-Ku for help-gnu-emacs@gnu.org; Thu, 01 Jul 2010 10:16:50 -0400 Original-Received: by wwi14 with SMTP id 14so1895992wwi.30 for ; Thu, 01 Jul 2010 07:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=hTIlfcyZSJGVrNAViDQM3EmStD678mqhohTu39NVivA=; b=dnwAELdlOwLurLguThq0YLED6569nwEuB92rtHKzDd+M6r109CKwQmNLlmklD8D2Zd 8pDoWb64knzN6N6C0eEEVVsCjqSpbZKGKzrlZYWgxvuUwXAODwFLLspNp1Qaua7X/kjm zkisl4feyEmiElcG1t8uZDw4Z9893OyiwWWKQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=V7nrncJTAlnkyMfY3EFgUkSaqTwUQyYgBbgMRgvS2HJQfcC3W+IUH0PO5q2laVuAnj ar2kgiwB0GvR7BQH3Z4skIjlG7IpjnBt8TAWpXza80OtL1QobMa2abAQcTdW1gfDvMyU HZId5cE0Tt6/qXNQ/66P2pQQjYl0JWosvjT4s= Original-Received: by 10.204.162.130 with SMTP id v2mr7547868bkx.5.1277993809315; Thu, 01 Jul 2010 07:16:49 -0700 (PDT) Original-Received: by 10.204.66.77 with HTTP; Thu, 1 Jul 2010 07:16:28 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74028 Archived-At: On Thu, Jul 1, 2010 at 15:55, Seweryn Kokot wrote: > Imagine that I have some numbers > > 33.444 3333 4433.4443 3344 .34234 > > and I want them multiplied for example by 0.1 > > to receive > > 3.3444 333.3 443.34443 334.4 .034234 Interactively, you can try with some variation of M-x replace-regexp \([0-9.]+\) \,(/ (string-to-number \1) 10.0) Juanma